Stop using VoteTransaction in Vote processor

This commit is contained in:
Greg Fitzgerald
2019-03-22 13:31:58 -06:00
parent a28f7db950
commit 5f41909098
5 changed files with 76 additions and 85 deletions

View File

@ -48,6 +48,10 @@ impl Script {
Self { instructions }
}
pub fn push(&mut self, instruction: Instruction) {
self.instructions.push(instruction);
}
/// Return pubkeys referenced by all instructions, with the ones needing signatures first.
/// No duplicates and order is preserved.
fn keys(&self) -> (Vec<Pubkey>, Vec<Pubkey>) {