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:
committed by
Ignotus Peverell
parent
c7f1ce965e
commit
3dd1dde00b
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user