AccountLoginRegister
Color theme

Forum › Articles

What ZMQ is and how we use it for instant new-block notifications

By PointSixMiner · PointSixPool team · 24 Nov 2026

ZMQ (ZeroMQ) is a lightweight messaging protocol. It lets one program publish short messages that any number of subscribers receive almost instantly. Bitcoin-family nodes have long used it to announce new blocks, and pool software listens for those announcements to start new work immediately. This guide explains how PointSixPool uses it.

1. Publish and subscribe. In ZMQ's publish/subscribe pattern, a publisher sends messages tagged with a topic and subscribers receive every message on the topics they asked for. Nobody polls: messages are pushed the instant they exist, which is what makes it fast.

2. The hashblock message. We publish one topic, hashblock, the same name and format pool software already expects. Each message has three parts: the topic name, the 32-byte hash of the new block, and a 4-byte sequence number that goes up by one with every message.

3. Sequence numbers. Because each message is numbered, a subscriber can tell whether it missed one. If the numbers jump, the engine knows to fetch a fresh template straight away instead of trusting that nothing changed.

4. Where the messages come from. Zebra does not currently publish ZMQ block notifications itself. Our notifier service learns about each new block through Zebra's long-polling interface (see the block notify pipeline guide) and republishes it as a standard hashblock message. To the mining engines it looks exactly like a classic node's ZMQ feed, so the proven pool code paths are used unchanged.

5. Private by design. The ZMQ publisher only listens on the pool server itself and is never reachable from the internet. Only our own mining engines subscribe. It carries public data only, block hashes that the whole network already knows, and no balances, addresses or keys.

6. What happens on a message. Each of the four engines (PPLNS, PPS+, SOLO and MICRO) receives the hashblock message, requests a new block template from the node and pushes a clean job to every miner. This takes tens of milliseconds end to end.

7. Belt and braces. ZMQ is the fast path, not the only one. Each engine also checks for template changes every second and refreshes jobs every 30 seconds, so a missed message costs about a second at most. Our status data shows how many recent blocks arrived through ZMQ compared with the slower fallback.

8. The result for miners. Instant new-block jobs mean fewer stale shares and more of your hashrate counting towards blocks that can still be won. That matters most for solo miners, where a single block decides the reward.

Questions about our setup are welcome in the forum.

All articles · Hashrate market · Connect a miner

POINTSIX SUPPORT

How can we help?

Describe what happened. We’ll record it for review. Never include passwords, codes, wallet seeds or private keys.

You’ll receive a private reference to check for an update. This form does not unlock an account.

QUICK TROUBLESHOOTING

Something may not have worked

You can try the steps below or send us a report.

  1. Check the highlighted fields and confirm your connection is working.
  2. Reload the page and try once more; check the saved status before repeating a payment or address change.
  3. If it still fails, use Contact support and describe the visible error without including secrets.

Only the page path and a short list of generic error types are included if you choose to report. Form contents, credentials and technical stack traces are never attached.

Open troubleshooting guide