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.