@@ -442,8 +442,8 @@ fn do_test_sanity_on_in_flight_opens(steps: u8) {
442
442
header : BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 0 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ,
443
443
txdata : vec ! [ ] ,
444
444
} ;
445
- connect_block ( & nodes[ 0 ] , & block, 1 ) ;
446
- connect_block ( & nodes[ 1 ] , & block, 1 ) ;
445
+ connect_block ( & nodes[ 0 ] , & block) ;
446
+ connect_block ( & nodes[ 1 ] , & block) ;
447
447
}
448
448
449
449
if steps & 0x0f == 0 { return ; }
@@ -2803,7 +2803,7 @@ fn test_htlc_on_chain_success() {
2803
2803
2804
2804
// Verify that B's ChannelManager is able to extract preimage from HTLC Success tx and pass it backward
2805
2805
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
2806
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : node_txn} , nodes [ 1 ] . best_block_info ( ) . 1 + 1 ) ;
2806
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : node_txn} ) ;
2807
2807
{
2808
2808
let mut added_monitors = nodes[ 1 ] . chain_monitor . added_monitors . lock ( ) . unwrap ( ) ;
2809
2809
assert_eq ! ( added_monitors. len( ) , 1 ) ;
@@ -2896,7 +2896,7 @@ fn test_htlc_on_chain_success() {
2896
2896
2897
2897
// Verify that A's ChannelManager is able to extract preimage from preimage tx and generate PaymentSent
2898
2898
let mut header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 0 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
2899
- connect_block ( & nodes[ 0 ] , & Block { header, txdata : vec ! [ commitment_tx[ 0 ] . clone( ) , node_txn[ 0 ] . clone( ) ] } , nodes [ 0 ] . best_block_info ( ) . 1 + 1 ) ;
2899
+ connect_block ( & nodes[ 0 ] , & Block { header, txdata : vec ! [ commitment_tx[ 0 ] . clone( ) , node_txn[ 0 ] . clone( ) ] } ) ;
2900
2900
check_closed_broadcast ! ( nodes[ 0 ] , false ) ;
2901
2901
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
2902
2902
let events = nodes[ 0 ] . node . get_and_clear_pending_events ( ) ;
@@ -3414,14 +3414,14 @@ fn test_htlc_ignore_latest_remote_commitment() {
3414
3414
assert_eq ! ( node_txn. len( ) , 2 ) ;
3415
3415
3416
3416
let mut header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
3417
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ node_txn[ 0 ] . clone( ) , node_txn[ 1 ] . clone( ) ] } , nodes [ 1 ] . best_block_info ( ) . 1 + 1 ) ;
3417
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ node_txn[ 0 ] . clone( ) , node_txn[ 1 ] . clone( ) ] } ) ;
3418
3418
check_closed_broadcast ! ( nodes[ 1 ] , false ) ;
3419
3419
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
3420
3420
3421
3421
// Duplicate the connect_block call since this may happen due to other listeners
3422
3422
// registering new transactions
3423
3423
header. prev_blockhash = header. block_hash ( ) ;
3424
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ node_txn[ 0 ] . clone( ) , node_txn[ 1 ] . clone( ) ] } , nodes [ 1 ] . best_block_info ( ) . 1 + 1 ) ;
3424
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ node_txn[ 0 ] . clone( ) , node_txn[ 1 ] . clone( ) ] } ) ;
3425
3425
}
3426
3426
3427
3427
#[ test]
@@ -4042,12 +4042,12 @@ fn do_test_htlc_timeout(send_partial_mpp: bool) {
4042
4042
header : BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 0 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ,
4043
4043
txdata : vec ! [ ] ,
4044
4044
} ;
4045
- connect_block ( & nodes[ 0 ] , & block, CHAN_CONFIRM_DEPTH + 1 ) ;
4046
- connect_block ( & nodes[ 1 ] , & block, CHAN_CONFIRM_DEPTH + 1 ) ;
4047
- for i in CHAN_CONFIRM_DEPTH + 2 ..TEST_FINAL_CLTV + CHAN_CONFIRM_DEPTH + 2 - CLTV_CLAIM_BUFFER - LATENCY_GRACE_PERIOD_BLOCKS {
4045
+ connect_block ( & nodes[ 0 ] , & block) ;
4046
+ connect_block ( & nodes[ 1 ] , & block) ;
4047
+ for _ in CHAN_CONFIRM_DEPTH + 2 ..TEST_FINAL_CLTV + CHAN_CONFIRM_DEPTH + 2 - CLTV_CLAIM_BUFFER - LATENCY_GRACE_PERIOD_BLOCKS {
4048
4048
block. header . prev_blockhash = block. block_hash ( ) ;
4049
- connect_block ( & nodes[ 0 ] , & block, i ) ;
4050
- connect_block ( & nodes[ 1 ] , & block, i ) ;
4049
+ connect_block ( & nodes[ 0 ] , & block) ;
4050
+ connect_block ( & nodes[ 1 ] , & block) ;
4051
4051
}
4052
4052
4053
4053
expect_pending_htlcs_forwardable ! ( nodes[ 1 ] ) ;
@@ -4894,7 +4894,7 @@ fn test_static_spendable_outputs_justice_tx_revoked_htlc_timeout_tx() {
4894
4894
4895
4895
// B will generate justice tx from A's revoked commitment/HTLC tx
4896
4896
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
4897
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 0 ] . clone( ) ] } , nodes [ 1 ] . best_block_info ( ) . 1 + 1 ) ;
4897
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 0 ] . clone( ) ] } ) ;
4898
4898
check_closed_broadcast ! ( nodes[ 1 ] , false ) ;
4899
4899
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
4900
4900
@@ -4966,7 +4966,7 @@ fn test_static_spendable_outputs_justice_tx_revoked_htlc_success_tx() {
4966
4966
4967
4967
// A will generate justice tx from B's revoked commitment/HTLC tx
4968
4968
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 0 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
4969
- connect_block ( & nodes[ 0 ] , & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 0 ] . clone( ) ] } , nodes [ 0 ] . best_block_info ( ) . 1 + 1 ) ;
4969
+ connect_block ( & nodes[ 0 ] , & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 0 ] . clone( ) ] } ) ;
4970
4970
check_closed_broadcast ! ( nodes[ 0 ] , false ) ;
4971
4971
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
4972
4972
@@ -5057,7 +5057,7 @@ fn test_onchain_to_onchain_claim() {
5057
5057
5058
5058
// So we broadcast C's commitment tx and HTLC-Success on B's chain, we should successfully be able to extract preimage and update downstream monitor
5059
5059
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
5060
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ c_txn[ 1 ] . clone( ) , c_txn[ 2 ] . clone( ) ] } , nodes [ 1 ] . best_block_info ( ) . 1 + 1 ) ;
5060
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ c_txn[ 1 ] . clone( ) , c_txn[ 2 ] . clone( ) ] } ) ;
5061
5061
{
5062
5062
let mut b_txn = nodes[ 1 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) ;
5063
5063
// ChannelMonitor: claim tx, ChannelManager: local commitment tx + HTLC-timeout tx
@@ -5700,8 +5700,8 @@ fn do_htlc_claim_local_commitment_only(use_dust: bool) {
5700
5700
header : BlockHeader { version : 0x20000000 , prev_blockhash : starting_block. 0 , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ,
5701
5701
txdata : vec ! [ ] ,
5702
5702
} ;
5703
- for i in starting_block. 1 + 1 ..TEST_FINAL_CLTV - CLTV_CLAIM_BUFFER + starting_block. 1 + 2 {
5704
- connect_block ( & nodes[ 1 ] , & block, i ) ;
5703
+ for _ in starting_block. 1 + 1 ..TEST_FINAL_CLTV - CLTV_CLAIM_BUFFER + starting_block. 1 + 2 {
5704
+ connect_block ( & nodes[ 1 ] , & block) ;
5705
5705
block. header . prev_blockhash = block. block_hash ( ) ;
5706
5706
}
5707
5707
test_txn_broadcast ( & nodes[ 1 ] , & chan, None , if use_dust { HTLCType :: NONE } else { HTLCType :: SUCCESS } ) ;
@@ -5732,8 +5732,8 @@ fn do_htlc_claim_current_remote_commitment_only(use_dust: bool) {
5732
5732
let starting_block = nodes[ 1 ] . best_block_info ( ) ;
5733
5733
let mut header = BlockHeader { version : 0x20000000 , prev_blockhash : starting_block. 0 , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
5734
5734
5735
- for i in starting_block. 1 + 1 ..TEST_FINAL_CLTV + LATENCY_GRACE_PERIOD_BLOCKS + starting_block. 1 + 2 {
5736
- connect_block ( & nodes[ 0 ] , & Block { header, txdata : Vec :: new ( ) } , i ) ;
5735
+ for _ in starting_block. 1 + 1 ..TEST_FINAL_CLTV + LATENCY_GRACE_PERIOD_BLOCKS + starting_block. 1 + 2 {
5736
+ connect_block ( & nodes[ 0 ] , & Block { header, txdata : Vec :: new ( ) } ) ;
5737
5737
header. prev_blockhash = header. block_hash ( ) ;
5738
5738
}
5739
5739
test_txn_broadcast ( & nodes[ 0 ] , & chan, None , HTLCType :: NONE ) ;
@@ -5779,8 +5779,8 @@ fn do_htlc_claim_previous_remote_commitment_only(use_dust: bool, check_revoke_no
5779
5779
header : BlockHeader { version : 0x20000000 , prev_blockhash : starting_block. 0 , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ,
5780
5780
txdata : vec ! [ ] ,
5781
5781
} ;
5782
- for i in starting_block. 1 + 1 ..TEST_FINAL_CLTV + LATENCY_GRACE_PERIOD_BLOCKS + CHAN_CONFIRM_DEPTH + 2 {
5783
- connect_block ( & nodes[ 0 ] , & block, i ) ;
5782
+ for _ in starting_block. 1 + 1 ..TEST_FINAL_CLTV + LATENCY_GRACE_PERIOD_BLOCKS + CHAN_CONFIRM_DEPTH + 2 {
5783
+ connect_block ( & nodes[ 0 ] , & block) ;
5784
5784
block. header . prev_blockhash = block. block_hash ( ) ;
5785
5785
}
5786
5786
if !check_revoke_no_close {
@@ -7620,13 +7620,12 @@ fn test_bump_penalty_txn_on_revoked_commitment() {
7620
7620
}
7621
7621
7622
7622
// Connect blocks to change height_timer range to see if we use right soonest_timelock
7623
- let starting_height = nodes[ 1 ] . best_block_info ( ) . 1 ;
7624
7623
let header_114 = connect_blocks ( & nodes[ 1 ] , 14 ) ;
7625
7624
7626
7625
// Actually revoke tx by claiming a HTLC
7627
7626
claim_payment ( & nodes[ 0 ] , & vec ! ( & nodes[ 1 ] ) [ ..] , payment_preimage, 3_000_000 ) ;
7628
7627
let header = BlockHeader { version : 0x20000000 , prev_blockhash : header_114, merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7629
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ revoked_txn[ 0 ] . clone( ) ] } , 15 + starting_height ) ;
7628
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ revoked_txn[ 0 ] . clone( ) ] } ) ;
7630
7629
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
7631
7630
7632
7631
// One or more justice tx should have been broadcast, check it
@@ -7719,7 +7718,7 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
7719
7718
7720
7719
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7721
7720
// B will generate both revoked HTLC-timeout/HTLC-preimage txn from revoked commitment tx
7722
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) ] } , CHAN_CONFIRM_DEPTH + 1 ) ;
7721
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) ] } ) ;
7723
7722
check_closed_broadcast ! ( nodes[ 1 ] , false ) ;
7724
7723
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
7725
7724
@@ -7744,9 +7743,9 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
7744
7743
// Broadcast set of revoked txn on A
7745
7744
let hash_128 = connect_blocks ( & nodes[ 0 ] , 40 ) ;
7746
7745
let header_11 = BlockHeader { version : 0x20000000 , prev_blockhash : hash_128, merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7747
- connect_block ( & nodes[ 0 ] , & Block { header : header_11, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) ] } , CHAN_CONFIRM_DEPTH + 40 + 1 ) ;
7746
+ connect_block ( & nodes[ 0 ] , & Block { header : header_11, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) ] } ) ;
7748
7747
let header_129 = BlockHeader { version : 0x20000000 , prev_blockhash : header_11. block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7749
- connect_block ( & nodes[ 0 ] , & Block { header : header_129, txdata : vec ! [ revoked_htlc_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 1 ] . clone( ) ] } , CHAN_CONFIRM_DEPTH + 40 + 2 ) ;
7748
+ connect_block ( & nodes[ 0 ] , & Block { header : header_129, txdata : vec ! [ revoked_htlc_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 1 ] . clone( ) ] } ) ;
7750
7749
expect_pending_htlcs_forwardable_ignore ! ( nodes[ 0 ] ) ;
7751
7750
let first;
7752
7751
let feerate_1;
@@ -7798,9 +7797,9 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
7798
7797
7799
7798
// Connect one more block to see if bumped penalty are issued for HTLC txn
7800
7799
let header_130 = BlockHeader { version : 0x20000000 , prev_blockhash : header_129. block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7801
- connect_block ( & nodes[ 0 ] , & Block { header : header_130, txdata : penalty_txn } , CHAN_CONFIRM_DEPTH + 40 + 3 ) ;
7800
+ connect_block ( & nodes[ 0 ] , & Block { header : header_130, txdata : penalty_txn } ) ;
7802
7801
let header_131 = BlockHeader { version : 0x20000000 , prev_blockhash : header_130. block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7803
- connect_block ( & nodes[ 0 ] , & Block { header : header_131, txdata : Vec :: new ( ) } , CHAN_CONFIRM_DEPTH + 40 + 4 ) ;
7802
+ connect_block ( & nodes[ 0 ] , & Block { header : header_131, txdata : Vec :: new ( ) } ) ;
7804
7803
{
7805
7804
let mut node_txn = nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) ;
7806
7805
assert_eq ! ( node_txn. len( ) , 2 ) ; // 2 bumped penalty txn on revoked commitment tx
@@ -7839,7 +7838,7 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
7839
7838
} ;
7840
7839
// Broadcast claim txn and confirm blocks to avoid further bumps on this outputs
7841
7840
let header_145 = BlockHeader { version : 0x20000000 , prev_blockhash : header_144, merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7842
- connect_block ( & nodes[ 0 ] , & Block { header : header_145, txdata : node_txn } , CHAN_CONFIRM_DEPTH + 40 + 8 + 10 ) ;
7841
+ connect_block ( & nodes[ 0 ] , & Block { header : header_145, txdata : node_txn } ) ;
7843
7842
connect_blocks ( & nodes[ 0 ] , 20 ) ;
7844
7843
{
7845
7844
let mut node_txn = nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) ;
@@ -8039,7 +8038,7 @@ fn test_bump_txn_sanitize_tracking_maps() {
8039
8038
penalty_txn
8040
8039
} ;
8041
8040
let header_130 = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 0 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
8042
- connect_block ( & nodes[ 0 ] , & Block { header : header_130, txdata : penalty_txn } , nodes [ 0 ] . best_block_info ( ) . 1 + 1 ) ;
8041
+ connect_block ( & nodes[ 0 ] , & Block { header : header_130, txdata : penalty_txn } ) ;
8043
8042
connect_blocks ( & nodes[ 0 ] , ANTI_REORG_DELAY - 1 ) ;
8044
8043
{
8045
8044
let monitors = nodes[ 0 ] . chain_monitor . chain_monitor . monitors . read ( ) . unwrap ( ) ;
@@ -8385,7 +8384,7 @@ fn test_htlc_no_detection() {
8385
8384
8386
8385
// Timeout HTLC on A's chain and so it can generate a HTLC-Timeout tx
8387
8386
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 0 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
8388
- connect_block ( & nodes[ 0 ] , & Block { header, txdata : vec ! [ local_txn[ 0 ] . clone( ) ] } , nodes [ 0 ] . best_block_info ( ) . 1 + 1 ) ;
8387
+ connect_block ( & nodes[ 0 ] , & Block { header, txdata : vec ! [ local_txn[ 0 ] . clone( ) ] } ) ;
8389
8388
// We deliberately connect the local tx twice as this should provoke a failure calling
8390
8389
// this test before #653 fix.
8391
8390
chain:: Listen :: block_connected ( & nodes[ 0 ] . chain_monitor . chain_monitor , & Block { header, txdata : vec ! [ local_txn[ 0 ] . clone( ) ] } , nodes[ 0 ] . best_block_info ( ) . 1 + 1 ) ;
@@ -8401,7 +8400,7 @@ fn test_htlc_no_detection() {
8401
8400
} ;
8402
8401
8403
8402
let header_201 = BlockHeader { version : 0x20000000 , prev_blockhash : header. block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
8404
- connect_block ( & nodes[ 0 ] , & Block { header : header_201, txdata : vec ! [ htlc_timeout. clone( ) ] } , nodes [ 0 ] . best_block_info ( ) . 1 + 1 ) ;
8403
+ connect_block ( & nodes[ 0 ] , & Block { header : header_201, txdata : vec ! [ htlc_timeout. clone( ) ] } ) ;
8405
8404
connect_blocks ( & nodes[ 0 ] , ANTI_REORG_DELAY - 1 ) ;
8406
8405
expect_payment_failed ! ( nodes[ 0 ] , our_payment_hash, true ) ;
8407
8406
}
@@ -8455,7 +8454,7 @@ fn do_test_onchain_htlc_settlement_after_close(broadcast_alice: bool, go_onchain
8455
8454
false => get_local_commitment_txn ! ( nodes[ 1 ] , chan_ab. 2 )
8456
8455
} ;
8457
8456
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
8458
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ txn_to_broadcast[ 0 ] . clone( ) ] } , CHAN_CONFIRM_DEPTH * 2 + 1 ) ;
8457
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ txn_to_broadcast[ 0 ] . clone( ) ] } ) ;
8459
8458
let mut bob_txn = nodes[ 1 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) ;
8460
8459
if broadcast_alice {
8461
8460
check_closed_broadcast ! ( nodes[ 1 ] , false ) ;
@@ -8534,7 +8533,7 @@ fn do_test_onchain_htlc_settlement_after_close(broadcast_alice: bool, go_onchain
8534
8533
if !broadcast_alice { txn_to_broadcast = get_local_commitment_txn ! ( nodes[ 1 ] , chan_ab. 2 ) ; }
8535
8534
if !go_onchain_before_fulfill {
8536
8535
let header = BlockHeader { version : 0x20000000 , prev_blockhash : nodes[ 1 ] . best_block_hash ( ) , merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
8537
- connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ txn_to_broadcast[ 0 ] . clone( ) ] } , CHAN_CONFIRM_DEPTH * 2 + 1 ) ;
8536
+ connect_block ( & nodes[ 1 ] , & Block { header, txdata : vec ! [ txn_to_broadcast[ 0 ] . clone( ) ] } ) ;
8538
8537
// If Bob was the one to force-close, he will have already passed these checks earlier.
8539
8538
if broadcast_alice {
8540
8539
check_closed_broadcast ! ( nodes[ 1 ] , false ) ;
0 commit comments