forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 21
Breach arbiter should watch for spends that invalidate justice tx #96
Copy link
Copy link
Open
Description
When publishing the justice transaction (
Lines 572 to 573 in 2975978
| err = b.cfg.PublishTransaction(finalTx) | |
| if err != nil { |
However it might be the case that one of the inputs gets double spent making the justice tx invalid. One way this can happen is in SPV mode where the transaction fails to be relayed in time and a different second-level htlc transaction is published.
The breach arbiter should watch for spends of the inputs of the justice transaction and craft a different justice tx even if the original publishing was correct.
Fixing this will allow enabling the "testRevokedCloseRetributionRemoteHodlSecondLevel" test for the SPV backend.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels