Pass pubkey for coinbase (#159)

* store wallet output data in hashmap
* cleanup up commented out code
* pass pubkey/identifier and not derivation around to miner etc.
* fix failing tests
This commit is contained in:
AntiochP
2017-10-07 13:38:41 -04:00
committed by Ignotus Peverell
parent c7f1ce965e
commit 3dd1dde00b
14 changed files with 249 additions and 69 deletions
+2 -2
View File
@@ -908,7 +908,7 @@ mod tests {
&block::BlockHeader::default(),
block_transactions,
&keychain,
pubkey,
&pubkey,
).unwrap();
chain_ref.apply_block(&block);
@@ -1007,7 +1007,7 @@ mod tests {
let keychain = Keychain::from_random_seed().unwrap();
let pubkey = keychain.derive_pubkey(1).unwrap();
block = block::Block::new(&block::BlockHeader::default(), tx_refs, &keychain, pubkey)
block = block::Block::new(&block::BlockHeader::default(), tx_refs, &keychain, &pubkey)
.unwrap();
}