Skip to content

Improve pending tx processing - #116

Merged
pshenmic merged 4 commits into
developfrom
fix/zmq-watchdog-and-stale-mempool
Oct 19, 2026
Merged

pshenmic merged 4 commits into
developfrom
fix/zmq-watchdog-and-stale-mempool

Conversation

@owl352

@owl352 owl352 commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Issue

At the moment, the zmq channel will not be deployed again in case of an unexpected closure, which will cause indexer to stop synchronizing transactions in real time, which is quite a big problem. Also, in case of problems with zmq, you need to add a backup source of pending transactions from rpc, which will allow you to insure yourself in case of problems with zmq.

Apart from this, there is also the problem that transactions that are already included in the block may still be displayed as pending, although this may not be the case.

Things done

  • Added an attempt to reconnect to zmq in case we don't receive messages for 10+ minutes.
  • In live-sync mode, we now also poll the rpc to receive mempool transactions every 10 seconds. In this communication channel, transactions will arrive later than in zmq, and due to internal checks, we will simply skip the data if it already exists.
  • Fixed a bug where a transaction from a mempool receives confirmation, but is still pending.

@owl352 owl352 self-assigned this Oct 19, 2026
@vercel

vercel Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dashscan Ready Ready Preview Oct 19, 2026 8:43pm UTC

Request Review

@pshenmic
pshenmic merged commit 282fa77 into develop Oct 19, 2026
5 checks passed
@pshenmic
pshenmic deleted the fix/zmq-watchdog-and-stale-mempool branch October 19, 2026 21:33

This branch was successfully deployed

1 active deployment
Preview — f6f85fcf Deployed Oct 19, 2026 by vercel[bot]
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

Successfully merging this pull request may close these issues.

2 participants