-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anchors: dont make anchorspend txs for in-chain commitments
We were seeing occassional spends of commitment tx utxos in anchorspend txs, which was causing occasional test fails. We shouldn't be sending anchorspends at all for onchain funding-spends. The logic is in place for this, but the ordering of the state update to channel was incorrect, which lead to loglines as follows (we'd expect to see failure in ONCHAIN not NORMAL), given that the reason=onchain... "Peer permanent failure in CHANNELD_NORMAL: Funding transaction spent (reason=onchain)" A quick reordering of the state change + firing of `drop_to_chain` fixes the issue of sending the anchorspend tx, which removes the race case of onchaind adding utxos from the commitment tx to the utxoset, where the anchorspend construction was picking them up. Fixes #7526
- Loading branch information
1 parent
cc2b4c0
commit a7c25bf
Showing
2 changed files
with
43 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters