Author

Topic: Cannot send unconfirmed coins from rpc. (Read 1515 times)

donator
Activity: 308
Merit: 250
June 19, 2012, 10:53:45 PM
#10
I had seen a 21 million transaction in a unconfirmed state a while back. It soon disappeared, though.
Impossible. Perhaps 21 million base units, but not bitcoins.
member
Activity: 109
Merit: 10
June 19, 2012, 10:46:09 PM
#9
The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.

I'll be looking out for short-lived 10 million Bitcoin transactions on blockchain.info! Cheesy
The ability to spend unconfirmed outputs doesn't mean you can create coins out of thin air. Sorry to disappoint.
I had seen a 21 million transaction in a unconfirmed state a while back. It soon disappeared, though.
donator
Activity: 308
Merit: 250
June 19, 2012, 10:22:02 PM
#8
The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.

I'll be looking out for short-lived 10 million Bitcoin transactions on blockchain.info! Cheesy
The ability to spend unconfirmed outputs doesn't mean you can create coins out of thin air. Sorry to disappoint.
member
Activity: 109
Merit: 10
June 19, 2012, 09:32:11 PM
#7
The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.


I'll be looking out for short-lived 10 million Bitcoin transactions on blockchain.info! Cheesy
legendary
Activity: 1260
Merit: 1000
Drunk Posts
June 19, 2012, 07:55:29 PM
#6
The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.


Thanks. That works for me, the 20BTC transaction was just an example I could post quickly, I'm really writing a satoshidice bot, and I'd like to keep it's balance very low...

I've never noticed that it didn't allow it before, I use coin control and send to myself fairly often, I'm guessing those transactions are included as "change"
donator
Activity: 308
Merit: 250
June 19, 2012, 07:54:12 PM
#5
If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.
...there is also Brainwallet's transaction composer. Very handy, and I think it'll do unconfirmed transactions just fine!
legendary
Activity: 1652
Merit: 2216
Chief Scientist
June 19, 2012, 07:52:48 PM
#4
The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.
donator
Activity: 308
Merit: 250
June 19, 2012, 07:46:04 PM
#3
0 confirm coins don't exist they aren't included in a block yet. Theres no header to include. You don't know what block they will be included in.
What are you talking about?! You reference previous transactions, not blocks or block headers.
hero member
Activity: 658
Merit: 500
June 19, 2012, 07:44:20 PM
#2
0 confirm coins don't exist they aren't included in a block yet. Theres no header to include. You don't know what block they will be included in.
legendary
Activity: 1260
Merit: 1000
Drunk Posts
June 19, 2012, 07:08:45 PM
#1
I cannot seem to get bitcoind to allow me to send 0-confirm coins. Is this by design, or a bug? I'm using the latest version from the ubuntu ppa.

I've tried both sendfrom and sendmany.

sendfrom [minconf=1] [comment] [comment-to]
sendmany {address:amount,...} [minconf=1] [comment]

root@bt:~# bitcoind getbalance
2.8245

root@bt:~# bitcoind getbalance "" 0
23.7164

root@bt:~# bitcoind sendfrom "" 1Meb94yEgFWN8SQ5JYVNTXU12qBa7a1eiY 20 0
error: {"code":-4,"message":"Insufficient funds"}
Jump to: