mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
d2d87758f7
This commit changes the channel arbitrator state machine to only care about commitment transactions that are being confirmed on-chain according to the chain_watcher. This is meant to handles the cases where we would broadcast our commitment, expecting it to get confirmed, but instead a competing transaction was confirmed. This commit readies the ChannelArbitrator state machine for the change that will make the ChainWatcher only notify on confirmed commitments. The state machine has gotten a new state, StateCommitmentBroadcasted, which we'll transition to after we have broadcasted our own commitment. From this state we'll go to the StateContractClosed state regardless of which commitment the ChainWatcher notifies about, unifying the contract resolution betweee the local and remote force close. |
||
---|---|---|
.. | ||
briefcase_test.go | ||
briefcase.go | ||
chain_arbitrator_test.go | ||
chain_arbitrator.go | ||
chain_watcher.go | ||
channel_arbitrator_test.go | ||
channel_arbitrator.go | ||
contract_resolvers_test.go | ||
contract_resolvers.go | ||
log.go |