get10101/itchysats

Fee bumping for punish transactions

da-kami opened this issue · 4 comments

Very similar to bumping fees for CETs, see #3099
We have to ensure to get punish in before the CET timelock expires.

Bumping a punish transaction can be tricky, because I think we can run into a race between the revoked-CET and the punish transaction.

That's the reason why we have a timeout on the CET: if a malicious user publishes a revoked commit, we have 12 confirmations time to the punish transaction. Which means, we have to get the transaction into a block in this timeframe or the malicious user might indeed publish an outdated CET.

That's the reason why we have a timeout on the CET: if a malicious user publishes a revoked commit, we have 12 confirmations time to the punish transaction.

So there is no "fee race" before those 12 blocks are mined, right? Only the currently valid transaction (punish) would be considered by the miners, because they cannot actually include the "revoked" CET in a block yet.

So there is no "fee race" before those 12 blocks are mined, right? Only the currently valid transaction (punish) would be considered by the miners, because they cannot actually include the "revoked" CET in a block yet.

Yes, correct.

This project is unmaintained