Fix randomized tests of zfuture transaction roundtrip.

This commit is contained in:
Kris Nuttycombe 2020-12-18 17:26:04 -07:00
parent 6373e7d053
commit 937fa06136
1 changed files with 4 additions and 1 deletions

View File

@ -619,7 +619,10 @@ pub mod testing {
tze_outputs: if branch_id == BranchId::ZFuture { tze_outputs } else { vec![] },
lock_time,
expiry_height: expiry_height.into(),
value_balance,
value_balance: match version {
TxVersion::Sprout(_) | TxVersion::Overwinter => Amount::zero(),
_ => value_balance,
},
shielded_spends: vec![], //FIXME
shielded_outputs: vec![], //FIXME
joinsplits: vec![], //FIXME