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

Retry pending transactions if they are not included in the winning block #6

Open
mitar opened this issue Mar 10, 2017 · 0 comments
Open

Comments

@mitar
Copy link
Member

mitar commented Mar 10, 2017

If a node was mining on a set of pending transactions and its block has not won, what to do if there are any transactions which were not included in the winning block. Because we allow same transactions to appear in multiple blocks, and because we do not want to keep in memory all transactions to check if there are duplicates, it seems tricky what exactly to do.

One option would be to find a common ancestor in chains of both blocks and see which transactions are in losing chain, but not in winning, but only from that common ancestor up to the newest blocks. And then reinclude them into pending transactions.

The question is also how should that happen. By reincluding locally only by a node, or by full retransmission over the whole network.

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