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
4387
-
// dropped when the Channel is. From there, the ChannelManager relies on the ChannelMonitor
4388
-
// having a copy of the relevant fail-/claim-back data and processes the HTLC fail/claim when
4389
-
// the ChannelMonitor tells it to.
4390
-
//
4391
-
// If, due to an on-chain event, an HTLC is failed/claimed, and then we serialize the
4392
-
// ChannelManager, we generally expect there not to be a duplicate HTLC fail/claim (eg via a
4393
-
// PaymentPathFailed event appearing). However, because we may not serialize the relevant
4394
-
// ChannelMonitor at the same time, this isn't strictly guaranteed. In order to provide this
4395
-
// consistency, the ChannelManager explicitly tracks pending-onchain-resolution outbound HTLCs
4396
-
// and de-duplicates ChannelMonitor events.
4397
-
//
4398
-
// This tests that explicit tracking behavior.
4399
-
let chanmon_cfgs = create_chanmon_cfgs(2);
4400
-
let node_cfgs = create_node_cfgs(2,&chanmon_cfgs);
4401
-
let node_chanmgrs = create_node_chanmgrs(2,&node_cfgs,&[None,None]);
4402
-
let persister: test_utils::TestPersister;
4403
-
let new_chain_monitor: test_utils::TestChainMonitor;
4404
-
let nodes_0_deserialized:ChannelManager<EnforcingSigner,&test_utils::TestChainMonitor,&test_utils::TestBroadcaster,&test_utils::TestKeysInterface,&test_utils::TestFeeEstimator,&test_utils::TestLogger>;
0 commit comments