Author

Topic: Forcing all sends to a specific address? (Read 656 times)

sr. member
Activity: 318
Merit: 251
December 24, 2013, 08:55:20 AM
#4
@elbandi -- Thanks, that helped loads!

I hope you are not stupid enough to actually try to abuse this now that you created a public topic.

Don't worry, it's for legit purposes.  We've been hacked to hell and back ourselves, hence the reasoning for this.

hero member
Activity: 812
Merit: 1022
No Maps for These Territories
December 24, 2013, 08:49:09 AM
#3
You're right. This does sound sketchy.

I hope you are not stupid enough to actually try to abuse this now that you created a public topic.
hero member
Activity: 525
Merit: 531
December 24, 2013, 08:36:03 AM
#2
try:
https://github.com/bitcoin/bitcoin/blob/master/src/rpcwallet.cpp#L323

change to:
Code:
CBitcoinAddress address("destaddress");

and search other rpc calls too (like createrawtransaction @ rpcrawtransaction.cpp, etc )

recompile the source
sr. member
Activity: 318
Merit: 251
December 24, 2013, 07:47:12 AM
#1

Looking for a way to do this, and I'm assuming it requires hacking the bitcoind/-qt client.  Currently, there's functions such as "sendtoaddress" and "sendfrom" available in the bitcoind client.  What I need is ALL sends from the wallet to be automatically sent to one certain address, regardless of what address is given to those send functions.

For example, say I have an address ABC.  If sendtoaddress(XYC, 0.5) is executed on the wallet, I want the bitcoind client to send that 0.5 to ABC instead of XYZ.  I also need to send a quick HTTP request to a remote server before every transaction gets sent, get a response, and add that as a comment to the transaction upon sending.

I know this sounds sketchy, but it's actually legit, and being done for security reasons.  And we need this done within the bitcoind client itself, to make it more difficult for hackers to get into.  Any knowledge you can share on a way forward with this would be greatly appreciated.

Jump to: