Skip to content

Commit c9c814f

Browse files
committed
Minor fixes in comments
1 parent bcc02b8 commit c9c814f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

zebra-chain/src/orchard/arbitrary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ impl Arbitrary for Flags {
128128
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy {
129129
(any::<u8>())
130130
.prop_map(|byte| {
131-
// Clear ENABLE_ZSA: it is only valid in V6, but this strategy
132-
// is also used for V5 transactions where it causes a deserialization error.
131+
// Clear ENABLE_ZSA: it is only allowed in V6, and this generator is
132+
// also used for V5 cases where the flag would make deserialization fail.
133133
#[cfg(feature = "tx_v6")]
134134
let byte = byte & !(Flags::ENABLE_ZSA.bits());
135135
Self::from_bits_truncate(byte)

zebra-chain/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ impl Transaction {
14301430
&self,
14311431
outputs: &HashMap<transparent::OutPoint, transparent::Output>,
14321432
) -> Result<ValueBalance<NegativeAllowed>, ValueBalanceError> {
1433-
// TODO: subtruct zip233_amount if zip233 is approved.
1433+
// TODO: subtract zip233_amount if zip233 is approved.
14341434
self.transparent_value_balance_from_outputs(outputs)?
14351435
+ self.sprout_value_balance()?
14361436
+ self.sapling_value_balance()

0 commit comments

Comments
 (0)