Re: [Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-24 Thread Eric Lombrozo
I'd also like to be able to get detailed information of message format errors for debugging other nodes that connect to bitcoind. For instance, if a transaction is rejected because the signature is invalid, I want to know this. If it's because the amount is out of range or because the output couldn

Re: [Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-22 Thread Eric Lombrozo
The callback architecture could be such that other code would never need to enter into the wallet-handling process/memory space. For instance, client applications could subscribe a particular URL to get sent an HTTP POST. For the apps I've been working on, there really isn't any need to access the

Re: [Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-22 Thread Luke-Jr
On Thursday, March 22, 2012 1:13:13 AM Eric Lombrozo wrote: > I would like to propose adding these callback hooks to the main > branch. I am willing to help locate these key points, reorganize the > code to place these methods in separate source files, define a callback > mechanism, and contribute

Re: [Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-22 Thread Michael Grønager
Hi Eric, What hooks are you looking for in particular ? libcoin supports registration of listeners for new blocks and new transactions. These are e.g. used for connecting the Wallet to the Node. Cheers, M On 22/03/2012, at 06:39, bitcoin-l...@bluematt.me wrote: > You might also want to chec

Re: [Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-21 Thread bitcoin-list
You might also want to check out libcoin. Its a fork of the satoshi client: https://github.com/ceptacle/libcoin Matt Eric Lombrozo wrote: Hey, guys. I've been writing a number of apps that require realtime event notifications, where the JSON-RPC API clearly doesn't suffice. There are two app

Re: [Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-21 Thread Matt Corallo
I spent some time changing the internal bitcoin code to use callback hooks, but its far from complete (or even really usable from anything other than the code in the satoshi client itself, it doesnt even have any deregister methods!). As it sits now, it is likely to get more eyeballs and merged fo

[Bitcoin-development] Adding callback hooks to the satoshi client

2012-03-21 Thread Eric Lombrozo
Hey, guys. I've been writing a number of apps that require realtime event notifications, where the JSON-RPC API clearly doesn't suffice. There are two approaches I've been taking to this end: 1) Writing my own library for dealing with raw bitcoin structures and connecting to bitcoin nodes via th