You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let relevant_txids = nodes[0].node.get_relevant_txids();
290
290
assert_eq!(relevant_txids.len(),0);
291
291
292
-
handle_announce_close_broadcast_events(&nodes,0,1,true,"Channel closed because of an exception: Funding transaction was un-confirmed. Locked at 6 confs, now have 0 confs.");
293
-
check_added_monitors!(nodes[1],1);
294
292
{
295
293
let per_peer_state = nodes[0].node.per_peer_state.read().unwrap();
296
294
let peer_state = per_peer_state.get(&nodes[1].node.get_our_node_id()).unwrap().lock().unwrap();
let relevant_txids = nodes[0].node.get_relevant_txids();
337
335
assert_eq!(relevant_txids.len(),0);
338
336
339
-
handle_announce_close_broadcast_events(&nodes,0,1,true,"Channel closed because of an exception: Funding transaction was un-confirmed. Locked at 6 confs, now have 0 confs.");
340
-
check_added_monitors!(nodes[1],1);
341
337
{
342
338
let per_peer_state = nodes[0].node.per_peer_state.read().unwrap();
343
339
let peer_state = per_peer_state.get(&nodes[1].node.get_our_node_id()).unwrap().lock().unwrap();
nodes[0].node.test_process_background_events();// Required to free the pending background monitor update
352
348
check_added_monitors!(nodes[0],1);
353
349
let expected_err = "Funding transaction was un-confirmed. Locked at 6 confs, now have 0 confs.";
354
-
check_closed_event!(nodes[1],1,ClosureReason::CounterpartyForceClosed{ peer_msg:UntrustedString(format!("Channel closed because of an exception: {}", expected_err))});
350
+
if reorg_after_reload || !reload_node {
351
+
handle_announce_close_broadcast_events(&nodes,0,1,true,"Channel closed because of an exception: Funding transaction was un-confirmed. Locked at 6 confs, now have 0 confs.");
352
+
check_added_monitors!(nodes[1],1);
353
+
check_closed_event!(nodes[1],1,ClosureReason::CounterpartyForceClosed{ peer_msg:UntrustedString(format!("Channel closed because of an exception: {}", expected_err))});
0 commit comments