File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -845,7 +845,8 @@ fn do_test_revoked_counterparty_commitment_balances(confirm_htlc_spend_first: bo
845
845
846
846
mine_transaction ( & nodes[ 1 ] , & as_revoked_txn[ 0 ] ) ;
847
847
let mut claim_txn: Vec < _ > = nodes[ 1 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . drain ( ..) . filter ( |tx| tx. input . iter ( ) . any ( |inp| inp. previous_output . txid == as_revoked_txn[ 0 ] . txid ( ) ) ) . collect ( ) ;
848
- // Currently the revoked commitment is claimed in four transactions, this should likely be changed.
848
+ // Currently the revoked commitment is claimed in four transactions as the HTLCs all expire
849
+ // quite soon.
849
850
assert_eq ! ( claim_txn. len( ) , 4 ) ;
850
851
claim_txn. sort_unstable_by_key ( |tx| tx. output . iter ( ) . map ( |output| output. value ) . sum :: < u64 > ( ) ) ;
851
852
You can’t perform that action at this time.
0 commit comments