What is Nostr?
Michael Hendricks [ARCHIVE] /
npub1xs2…4k9q
2023-06-07 15:02:33
in reply to nevent1q…lqs4

Michael Hendricks [ARCHIVE] on Nostr: 📅 Original date posted:2013-05-31 📝 Original message:On Fri, May 31, 2013 at ...

📅 Original date posted:2013-05-31
📝 Original message:On Fri, May 31, 2013 at 5:56 AM, Rune Kjær Svendsen <runesvend at gmail.com>wrote:

> I have an application that wants to keep up with new blocks as they come
> in. For that I can use the -blocknotify option with bitcoind, which will
> execute my application for each new block.
>
> The problem is that my app isn't necessarily quick enough to finish its
> work before a new block comes in and the app is executed again.
>

In a similar circumstance, I changed my -blocknotify script to quickly
append necessary information to a queue and immediately exit. A separate
script runs at all times monitoring this queue for work and performs the
labor intensive calculations.

I hope that helps.

--
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20130531/82acd521/attachment.html>;
Author Public Key
npub1xs2ujdur5f653rjudvugjgtsaths04mpgl86rtcnrw24w7us8hmszc4k9q