Skip to content

Commit

Permalink
Make the transaction size check more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
optout21 committed Sep 12, 2023
1 parent 272b36b commit bcb1973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/functional_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ fn test_splice_in_simple() {
// Check that signed splice funding transaction has been broadcasted
assert_eq!(chanmon_cfgs[0].tx_broadcaster.txn_broadcasted.lock().unwrap().len(), 2);
let broadcasted_splice_tx = chanmon_cfgs[0].tx_broadcaster.txn_broadcasted.lock().unwrap()[1].clone();
assert_eq!(broadcasted_splice_tx.encode().len(), 314);
assert!(broadcasted_splice_tx.encode().len() >= 314 && broadcasted_splice_tx.encode().len() <= 315);
assert_eq!(broadcasted_splice_tx.txid(), splice_tx.txid());
assert_ne!(broadcasted_splice_tx.encode(), splice_tx.encode());

Expand Down

0 comments on commit bcb1973

Please sign in to comment.