verify coinbase maturity via output_mmr_size (#1203)

* we do not need Merkle proofs to spend coinbase outputs
we only need the output_mmr_size from the block header

* tests working with no Merkle proofs in inputs
This commit is contained in:
Antioch Peverell
2018-06-28 21:56:07 -04:00
committed by GitHub
parent d0f8d325f2
commit 1df409fa69
21 changed files with 61 additions and 443 deletions
-2
View File
@@ -126,8 +126,6 @@ where
let key_id = keychain.derive_key_id(header.height as u32).unwrap();
tx_elements.push(libtx::build::coinbase_input(
coinbase_reward,
header.hash(),
MerkleProof::default(),
key_id,
));
}