@@ -2951,26 +2951,8 @@ fn do_test_htlc_on_chain_timeout(connect_style: ConnectStyle) {
2951
2951
mine_transaction(&nodes[1], &timeout_tx);
2952
2952
check_added_monitors!(nodes[1], 1);
2953
2953
check_closed_broadcast!(nodes[1], true);
2954
- {
2955
- // B will rebroadcast a fee-bumped timeout transaction here.
2956
- let node_txn = nodes[1].tx_broadcaster.txn_broadcasted.lock().unwrap().split_off(0);
2957
- assert_eq!(node_txn.len(), 1);
2958
- check_spends!(node_txn[0], commitment_tx[0]);
2959
- }
2960
2954
2961
2955
connect_blocks(&nodes[1], ANTI_REORG_DELAY - 1);
2962
- {
2963
- // B may rebroadcast its own holder commitment transaction here, as a safeguard against
2964
- // some incredibly unlikely partial-eclipse-attack scenarios. That said, because the
2965
- // original commitment_tx[0] (also spending chan_2.3) has reached ANTI_REORG_DELAY B really
2966
- // shouldn't broadcast anything here, and in some connect style scenarios we do not.
2967
- let node_txn = nodes[1].tx_broadcaster.txn_broadcasted.lock().unwrap().split_off(0);
2968
- if node_txn.len() == 1 {
2969
- check_spends!(node_txn[0], chan_2.3);
2970
- } else {
2971
- assert_eq!(node_txn.len(), 0);
2972
- }
2973
- }
2974
2956
2975
2957
expect_pending_htlcs_forwardable_and_htlc_handling_failed!(nodes[1], vec![HTLCDestination::NextHopChannel { node_id: Some(nodes[2].node.get_our_node_id()), channel_id: chan_2.2 }]);
2976
2958
check_added_monitors!(nodes[1], 1);
@@ -8001,22 +7983,6 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
8001
7983
connect_block(&nodes[0], &Block { header: header_130, txdata: penalty_txn });
8002
7984
let header_131 = BlockHeader { version: 0x20000000, prev_blockhash: header_130.block_hash(), merkle_root: TxMerkleNode::all_zeros(), time: 42, bits: 42, nonce: 42 };
8003
7985
connect_block(&nodes[0], &Block { header: header_131, txdata: Vec::new() });
8004
- {
8005
- let mut node_txn = nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap();
8006
- assert_eq!(node_txn.len(), 2); // 2 bumped penalty txn on revoked commitment tx
8007
-
8008
- check_spends!(node_txn[0], revoked_local_txn[0]);
8009
- check_spends!(node_txn[1], revoked_local_txn[0]);
8010
- // Note that these are both bogus - they spend outputs already claimed in block 129:
8011
- if node_txn[0].input[0].previous_output == revoked_htlc_txn[0].input[0].previous_output {
8012
- assert_eq!(node_txn[1].input[0].previous_output, revoked_htlc_txn[2].input[0].previous_output);
8013
- } else {
8014
- assert_eq!(node_txn[0].input[0].previous_output, revoked_htlc_txn[2].input[0].previous_output);
8015
- assert_eq!(node_txn[1].input[0].previous_output, revoked_htlc_txn[0].input[0].previous_output);
8016
- }
8017
-
8018
- node_txn.clear();
8019
- };
8020
7986
8021
7987
// Few more blocks to confirm penalty txn
8022
7988
connect_blocks(&nodes[0], 4);
0 commit comments