Minor cleanup, range proof pmmr validation and tests

This commit is contained in:
Ignotus Peverell
2018-02-24 23:39:26 +00:00
parent 3ab616b8be
commit 341a3c9f4d
4 changed files with 20 additions and 57 deletions
+2 -5
View File
@@ -863,15 +863,12 @@ impl OutputStoreable {
}
/// Return a regular output
pub fn to_output(self) -> Output {
pub fn to_output(self, rproof: RangeProof) -> Output {
Output{
features: self.features,
commit: self.commit,
switch_commit_hash: self.switch_commit_hash,
proof: RangeProof{
proof:[0; secp::constants::MAX_PROOF_SIZE],
plen: 0,
},
proof: rproof,
}
}
}