Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Automatic on December 05, 2013, 10:55:42 AM



Title: BitcoinD -- Hooking into incoming connections?
Post by: Automatic on December 05, 2013, 10:55:42 AM
Hi, I'm developing a very small (private, which, defeats the purpose) bitcoin tumbler as my first bitcoin related project, just to see what bitcoin development entails (Using bitcoind, no fancy recoding of the entire network interface), and, I'm having a small issue.

I have my program generate a new address everytime anyone goes to the 'deposit' link, and, I have a unique wallet per user (Based on their BTC address), so, all is dandy. Now, my only issue is, when a user sends me the payment the only method I can seem to think of that checks for payments is going through ALL my addresses on ALL my wallets and checking their balance, which, is a huge pain in the ass (And, what I'd consider, a waste of processing power).

Is there anyway to hook incoming payments to my (I.E. Addresses in all my wallets) addresses with the bitcoin daemon? Even if it doesn't tell me which address, just 'a' address, it'd be a whole lot better than having a while loop checking every five seconds.

Thanks,
Automatic.


Title: Re: BitcoinD -- Hooking into incoming connections?
Post by: caffeinewriter on December 05, 2013, 11:19:46 AM
I don't know if I can answer your question directly, but I can point you towards a StackOverflow which can point you in the right direction. Too tired to read documentation right now.

http://bitcoin.stackexchange.com/questions/6132/how-to-know-when-a-payment-has-been-received-by-bitcoind


Title: Re: BitcoinD -- Hooking into incoming connections?
Post by: Automatic on December 05, 2013, 11:24:15 AM
I don't know if I can answer your question directly, but I can point you towards a StackOverflow which can point you in the right direction. Too tired to read documentation right now.

http://bitcoin.stackexchange.com/questions/6132/how-to-know-when-a-payment-has-been-received-by-bitcoind

Fair enough, so the only way is to call a program which then notifies my program that it's got a payment? No internal method?

That's a shame, oh well, I guess it'll have to do. Thanks.