2_Thumbs_Up (OP)
|
|
August 23, 2011, 10:37:29 PM |
|
Lets say my friend calls me and needs some money fast. I send him some money from my smart phone, he recieves it and says thanks. Then he wants to spend it on whatever he needed it for. Assume that he spends it before he gets any confirmations, is it possible for both of our transactions end up in the same block?
|
|
|
|
jackjack
Legendary
Offline
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
|
|
August 23, 2011, 10:58:29 PM |
|
Yes
|
Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2 Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
|
|
|
2_Thumbs_Up (OP)
|
|
August 23, 2011, 11:05:26 PM |
|
Awesome!
Thanks :-)
|
|
|
|
helloworld
|
|
August 23, 2011, 11:13:21 PM |
|
However... I don't think the standard software will let you spend it until it has at least 1 confirmation.
|
|
|
|
jackjack
Legendary
Offline
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
|
|
August 23, 2011, 11:22:27 PM |
|
However... I don't think the standard software will let you spend it until it has at least 1 confirmation.
Are you sure? I think that with enough fee it's ok Just a thought though
|
Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2 Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
|
|
|
helloworld
|
|
August 23, 2011, 11:33:08 PM |
|
However... I don't think the standard software will let you spend it until it has at least 1 confirmation.
Are you sure? I think that with enough fee it's ok Just a thought though Well, I'm not sure about all versions, but I think when it's on 0/unconfirmed it's still grey, not black and won't update your balance with the new amount until it gets into at least 1 block. Also, using command line bitcoind or something might get around this.
|
|
|
|
FreeMoney
Legendary
Offline
Activity: 1246
Merit: 1016
Strength in numbers
|
|
August 23, 2011, 11:45:03 PM |
|
It is technically okay to have unconfirmed inputs, old versions allowed this from the GUI. The newer ones don't. I can't remember the exact justification.
|
Play Bitcoin Poker at sealswithclubs.eu. We're active and open to everyone.
|
|
|
2_Thumbs_Up (OP)
|
|
August 23, 2011, 11:56:58 PM |
|
However... I don't think the standard software will let you spend it until it has at least 1 confirmation.
Sure, I'm not really that interested in client limitations though, since there will be plenty of clients with different features. I'm interested in the theory of bitcoin and the protocol, and this was just a random question that popped up in my head.
|
|
|
|
joulesbeef
Sr. Member
Offline
Activity: 476
Merit: 250
moOo
|
|
August 24, 2011, 12:19:29 AM |
|
what about this?Scenario: You can't wait around for one or several confirmation blocks. Instead, you receive the transaction, broadcast it to nodes you know and wait for a couple of seconds to see if you notice any double-spend attempts. If not, you accept the payment right away. In the current Bitcoin scheme, one can't accept transactions until it has been incorporated into a block. Suppose two transactions "spending the same coins" enter the network at different points. On average, half the network will have one transaction and half the other. The only way out of this deadlock is which happens to make it into a block first. So you can see that the race across the network is unimportant but the race to get into a block is the deciding factor. Hal's attack above would yield a reliable income. ByteCoin and what about mybitcoin, who claims it was a 1 confirmation problemsounds to me like they would be in separate blocks
|
mooo for rent
|
|
|
ArtForz
|
|
August 24, 2011, 12:42:21 AM |
|
Clients don't spend 0/unconfirmed coins they get from somewhere else. They will spend their own 0/unconfirmed change if left no other option. Original reason for that, "viral bitdust": A transaction that split 0.01 btc into 100s of tiny outputs and had no fee, so it staid at 0/unconf "forever". Clients that received one of the outputs sooner or later used them as inputs in their own transactions... and as a tx can only go into a block if all its inputs are in the same or older blocks... Yeah.
|
bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
|
|
|
|