Is it possible to catch up missing blocks with zeroMQ if script was down for a while?

2

I use zeroMQ to get all new blocks (rawblock or hashblock). If my script is down for few minutes or hours and I missed few blocks, is it possible to catch up all missed blocks with zeroMQ when I restart the script ? During this time, bitcoin-core is always running.

jfjobidon

Posted 2019-11-14T14:31:55.920

Reputation: 265

Answers

1

No, it is not possible to catch up via ZMQ itself. A sequence number is present with each notification so you can detect when you've missed notifications. In those cases, then you can fetch the missing blocks and transactions over the RPC interface.

Andrew Chow

Posted 2019-11-14T14:31:55.920

Reputation: 40 910