-
Notifications
You must be signed in to change notification settings - Fork 235
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
Syncing and the mempool #186
Comments
Tickets about the mempool and the syncing of transactions:
Tickets about the mempool and the syncing of blocks:
|
Do you on purpose exclude ticket #68 ? On one hand its more technical and closer to implementation, on the other it is mempool and depends on choices we make in this thread. There is fundamental question: do we sync the transactions from mempool? (transactions that are not mined)? If we do - transaction is propagated to another nodes and included in another solution attempts in parallel. So there is chance that it will be mined sooner than if it stays on one node. The disadvantages I see:
I think we should sync nodes' mempools. Maybe we should add TTL to transactions to control parallelism of the mining of a transaction? If we do sync mempools then the growth of the mempool is faster and #68 is very useful. |
I had excluded #68 on purpose because not directly related to syncing. But yes - good to mention in order to have the full perspective.
I understand this question impacts the scope of GH-62.
Even without transmitting to other nodes transactions that are in mempool, the case of the same transaction being included by two concurrent distinct miners cannot be excluded.
It feels a TTL would complicate things, and I would avoid that. I am not sure yet about complexity of protocol for broadcasting transactions (that I understand in scope of GH-62). I believe a basic solution shall be implemented first as part of GH-62, and complex optional parts / fine tuning for optimal distribution deferred. |
Yes, we do this!
What does this mean exactly? Is this the time the transaction lives in the mempool before it's deleted? What is the parallelism of the mining of a transaction? @lucafavatella Thank you, this is very comprehensive! |
@sennui @lucafavatella Transactions are fungible so we'll keep them in the mempol if they already exist. There's no need to delete them just to add them back later. See #230. Shall we close this ticket? |
Wrt mempool, cases 1, 2 and 3A are covered in GH-232 - as I see "Delete transactions from the mempool when adding a block to our chain".
Wrt mempool, I see this case 3B is covered in GH-233 - as I see "Return transactions to the mempool when discarding a block". |
What are the tickets this depends on? Do we have all of them?
The text was updated successfully, but these errors were encountered: