Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Reorg Protection #8

Open
Tracked by #11
scilio opened this issue Aug 21, 2022 · 0 comments
Open
Tracked by #11

Basic Reorg Protection #8

scilio opened this issue Aug 21, 2022 · 0 comments

Comments

@scilio
Copy link
Contributor

scilio commented Aug 21, 2022

As part of milestone 3, the following protections will be added to help ensure CoinSwap transactions cannot be easily lost due to short chain reorgs:

  1. If a transaction is broadcast but not accepted by the network due to inputs being already spent, the mwixnet servers will try to rebuild the transaction, pruning any swaps for inputs already spent.
  2. If a CoinSwap transaction is included in a block, but later removed by a reorg, the mwixnet server will try to rebroadcast the transaction. If the transaction is no longer valid, try to rebuild it, pruning any swaps for inputs already spent.

Reasonable limits will be set for the size of the swap cache and the number of attempts at rebuilding the CoinSwap transaction for a round.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant