thunder icon indicating copy to clipboard operation
thunder copied to clipboard

Claim funds after other party cheated

Open matsjj opened this issue 9 years ago • 1 comments

BlockchainWatcherImpl implements the general behaviour of watching the blockchain and detecting if the anchor has been spent.

What is still missing is analysing the status quo when detecting a spent anchor and acting accordingly. We need to implement logic that compares the state of the latest ChannelStatus with the transaction that spends the anchor AND is sufficiently deep buried in the blockchain.

If it turns out it is an older version, we have to broadcast transactions, claiming the funds from both parties using the RevocationHash.

If the anchor pays to two P2PKH addresses, it means the channel has been closed friendly, so we don't need to check these.

matsjj avatar May 13 '16 12:05 matsjj

Me robaron fondos

LToxiCs avatar Jun 05 '22 07:06 LToxiCs