File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments