WIP: core/txpool/localpool: sketch up idea of the localpool#28514
WIP: core/txpool/localpool: sketch up idea of the localpool#28514MariusVanDerWijden wants to merge 3 commits into
Conversation
|
The data structure itself is basically the same idea as @holiman's |
|
Wait. Just want to clear up any misconceptions... The 'limbo' idea is a to remove the notion of The 'locals-tracker' idea is to NOT use a txpool/subpool for handling locals, at all, but instead just use a little standalone tracker. Said tracker does, from time to time, check if geth "remembers" a transaction, and if not, submits it again (#27535). The idea being that the actual txpool is a good simulation of the peer txpools, so if the local txpool accepts it (and broadcasts it), then the peers might also accept it (again). |
|
No misconceptions, I just didn't know that you called it |
PoC of a standalone subpool for local transactions, this would allow us to remove handling of locals in the main txpool
My main ideas:
I added a (very preliminary) benchmark which shows that the reorg routine can be executed in < 2ms for 1 million transactions that are dropped (as long as no transactions are resurrected)