Merge pull request 'add fee to builder' (#4) from lucretius/librustzcash:sdl into sdl

Reviewed-on: https://git.hush.is/hush/librustzcash/pulls/4
This commit is contained in:
duke
2024-01-23 14:53:09 +00:00

View File

@@ -294,6 +294,10 @@ impl<R: RngCore + CryptoRng> Builder<R> {
}
}
pub fn set_fee(&mut self, fee: Amount) {
self.fee = fee;
}
/// Adds a Sapling note to be spent in this transaction.
///
/// Returns an error if the given witness does not have the same anchor as previous