[Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Rune Kjær Svendsen
Hello dear list 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

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Michael Hendricks
On Fri, May 31, 2013 at 5:56 AM, Rune Kjær Svendsen runesv...@gmail.comwrote: 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

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Rune Kjær Svendsen
On Fri, May 31, 2013 at 2:10 PM, Michael Hendricks mich...@ndrix.orgwrote: On Fri, May 31, 2013 at 5:56 AM, Rune Kjær Svendsen runesv...@gmail.comwrote: 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,

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Jeff Garzik
On Fri, May 31, 2013 at 7:56 AM, Rune Kjær Svendsen runesv...@gmail.com wrote: Hello dear list 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

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Jeff Garzik
On Fri, May 31, 2013 at 8:37 AM, Rune Kjær Svendsen runesv...@gmail.com wrote: I've thought about this as well. It just seems somewhat clunky to me. I'd really prefer having bitcoind put out messages in batches, if it's doable, that is. I'd run into a lot of concurrency issues, as far as I

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Chris Double
On Fri, May 31, 2013 at 11:56 PM, Rune Kjær Svendsen runesv...@gmail.com wrote: I'm not quite so how to go about this. As others have said, queuing outside of bitcoind is a better approach. I use zeromq for this situation. blocknotify runs a program which uses zeromq's pub/sub to queue and the

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Wladimir
Chris, Using zmq is a great fit for high-speed notifications such as this. Have you seen the pull request to integrate zmq directly into bitcoind, so that you don't even need -blocknotify? https://github.com/bitcoin/bitcoin/pull/2415 If not: we could use some testing there! Wladimir On Sat,

Re: [Bitcoin-development] Implementing batch processing for -blocknotify

2013-05-31 Thread Chris Double
On Sat, Jun 1, 2013 at 11:29 AM, Wladimir laa...@gmail.com wrote: Using zmq is a great fit for high-speed notifications such as this. Have you seen the pull request to integrate zmq directly into bitcoind, so that you don't even need -blocknotify? https://github.com/bitcoin/bitcoin/pull/2415