Apply suggestions from code review

Co-authored-by: str4d <jack@electriccoin.co>
This commit is contained in:
Kris Nuttycombe 2021-06-02 17:11:04 -06:00 committed by GitHub
parent 2c891a8000
commit 0743f9e815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,7 @@ impl<P: consensus::Parameters> SaplingBuilder<P> {
}
}
/// Returns the net value represented by the spends and outputs added to this builder.
pub fn value_balance(&self) -> Amount {
self.value_balance
}

View File

@ -181,7 +181,7 @@ impl TxVersion {
BranchId::Sapling | BranchId::Blossom | BranchId::Heartwood | BranchId::Canopy => {
TxVersion::Sapling
}
BranchId::Nu5 => TxVersion::ZFuture,
BranchId::Nu5 => unimplemented!(),
#[cfg(feature = "zfuture")]
BranchId::ZFuture => TxVersion::ZFuture,
}