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
Drop test_dup_htlc_onchain_fails_on_reload as it no longer applies
test_dup_htlc_onchain_fails_on_reload tested our outbound payment
tracking to ensure we never sent more than one PaymentSent event
to users per payment in the case of a manager-monitor storage
order inversion which was common. However, now that we require
monitors be persisted when a block is connected, that inversion
can never occur, and thus the test isn't testing anything.
// When a Channel is closed, any outbound HTLCs which were relayed through it are simply
4191
-
// dropped when the Channel is. From there, the ChannelManager relies on the ChannelMonitor
4192
-
// having a copy of the relevant fail-/claim-back data and processes the HTLC fail/claim when
4193
-
// the ChannelMonitor tells it to.
4194
-
//
4195
-
// If, due to an on-chain event, an HTLC is failed/claimed, and then we serialize the
4196
-
// ChannelManager, we generally expect there not to be a duplicate HTLC fail/claim (eg via a
4197
-
// PaymentPathFailed event appearing). However, because we may not serialize the relevant
4198
-
// ChannelMonitor at the same time, this isn't strictly guaranteed. In order to provide this
4199
-
// consistency, the ChannelManager explicitly tracks pending-onchain-resolution outbound HTLCs
4200
-
// and de-duplicates ChannelMonitor events.
4201
-
//
4202
-
// This tests that explicit tracking behavior.
4203
-
let chanmon_cfgs = create_chanmon_cfgs(2);
4204
-
let node_cfgs = create_node_cfgs(2,&chanmon_cfgs);
4205
-
let node_chanmgrs = create_node_chanmgrs(2,&node_cfgs,&[None,None]);
4206
-
let persister: test_utils::TestPersister;
4207
-
let new_chain_monitor: test_utils::TestChainMonitor;
4208
-
let nodes_0_deserialized:ChannelManager<EnforcingSigner,&test_utils::TestChainMonitor,&test_utils::TestBroadcaster,&test_utils::TestKeysInterface,&test_utils::TestFeeEstimator,&test_utils::TestLogger>;
0 commit comments