-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I wrote some documentation on that, but it is on the This number is in Bitcoin Core for each zmq publisher, it is defined as uint32_t, and incremented every time a zmq message is sent, without additional special logic, so after u32::MAX it rolls over back to 0. This number can be used to track if any messages are lost. Lets say you have to restart your program (but not bitcoin core), if the program records the last seen sequence number before restarting it can compare it to the first seen one after booting up, and know if and how many messages were missed. If you need more info on Bitcoin Core zmq specifics like this, I linked some documentation in the readme, "Useful resources". |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, I'll read the documentation. |
Beta Was this translation helpful? Give feedback.
I wrote some documentation on that, but it is on the
sequence
method ofMessage
(see docs here).This number is in Bitcoin Core for each zmq publisher, it is defined as uint32_t, and incremented every time a zmq message is sent, without additional special logic, so after u32::MAX it rolls over back to 0.
This number can be used to track if any messages are lost. Lets say you have to restart your program (but not bitcoin core), if the program records the last seen sequence number before restarting it can compare it to the first seen one after booting up, and know if and how many messages were missed.
If you need more info on Bitcoin Core zmq specifics like this, I linked some documentation…