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>
Published at
2023-06-07 15:02:33Event JSON
{
"id": "dabf90a77a9c8d2b27563853587ec8acb7c174b20bed431fb7d103a701d70581",
"pubkey": "3415c93783a275488e5c6b38892170eaef07d76147cfa1af131b95577b903df7",
"created_at": 1686150153,
"kind": 1,
"tags": [
[
"e",
"ef3511574a96b47529fa1d6c1878eeed24d9a6448c393b6a3a9eb7b72164923e",
"",
"root"
],
[
"e",
"f277337fcf5f2bd105016aedb466a4ec77f129de9adf3f3207a7cd896f4c6d49",
"",
"reply"
],
[
"p",
"8438bef57d05ffe31835fbb52e2f974f014354f84bcd030510336c6b24a3f95c"
]
],
"content": "📅 Original date posted:2013-05-31\n📝 Original message:On Fri, May 31, 2013 at 5:56 AM, Rune Kjær Svendsen \u003crunesvend at gmail.com\u003ewrote:\n\n\u003e I have an application that wants to keep up with new blocks as they come\n\u003e in. For that I can use the -blocknotify option with bitcoind, which will\n\u003e execute my application for each new block.\n\u003e\n\u003e The problem is that my app isn't necessarily quick enough to finish its\n\u003e work before a new block comes in and the app is executed again.\n\u003e\n\nIn a similar circumstance, I changed my -blocknotify script to quickly\nappend necessary information to a queue and immediately exit. A separate\nscript runs at all times monitoring this queue for work and performs the\nlabor intensive calculations.\n\nI hope that helps.\n\n-- \nMichael\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20130531/82acd521/attachment.html\u003e",
"sig": "24f43f45c87f9486d3b6039406cbe9e03d113cb9a11d9c2674b1158897c1722dfcf8e3d9f9afdf47c4794824c99449c8bf0ed305c2125dc0be0c96a12f528267"
}