Content pfp
Content
@
0 reply
0 recast
2 reactions

Roman pfp
Roman
@bobelyuk
Today, I delved a bit deeper into how mempools works and discovered a lot of new information. It turns out there is no single global state of the mempool. Each node initializes its own mempool. This happens approximately as follows: 1. The node initializes the mempool (via the New() method) and has its own RPC server that listens for incoming transactions from wallets and dApps. 2. The node calls the Add() method when transactions arrive and immediately distributes these transactions across the subpools of the main mempool. 3. When creating the mempool in the New() method, the node launches loop() which listens for blockchain events and filters the local mempool when needed, possibly discarding some transactions. This is another way of synchronization. 4. The Pending() method of the mempool returns transactions from all subpools in the pending status, which I don't really like. As an MEV searcher, I would like to see transactions in all states, unloading all subpools.
3 replies
1 recast
26 reactions

Rostyslav pfp
Rostyslav
@chaser1
Хороша м4 козаче. Але не уявляю як потрібно любити авто, щоб взяти у великі місто механіку😶‍🌫️
1 reply
0 recast
1 reaction

Roman pfp
Roman
@bobelyuk
Звикаєш до цього)
1 reply
0 recast
1 reaction