dree12 (OP)
Legendary
Offline
Activity: 1246
Merit: 1077
|
|
September 24, 2011, 07:42:52 PM |
|
The reason I ask is that it is a nice round number, but there are at least 20 nanobitcoin which have been literally "destroyed", or removed from existance forever. http://blockexplorer.com/block/0000000000004c78956f8643262f3622acf22486b120421f893c0553702ba7b5 gives an example of this. So unless an entire 0.99999998 have also been destroyed (which is unlikely), am I correct in assuming that this number is an upper limit to the amount of bitcoins in existance and not an exact amount?
|
|
|
|
tcatm
|
|
September 24, 2011, 08:03:02 PM |
|
Yes, it's the total number of bitcoins generated; not the number if bitcoins "available".
|
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5348
Merit: 13316
|
|
September 24, 2011, 08:17:38 PM |
|
It's the upper limit. If you remove coins that have been obviously destroyed in that way, the number would be 200.01000001 less than the upper limit (at the moment).
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
dree12 (OP)
Legendary
Offline
Activity: 1246
Merit: 1077
|
|
September 24, 2011, 08:21:21 PM |
|
It's the upper limit. If you remove coins that have been obviously destroyed in that way, the number would be 200.01000001 less than the upper limit (at the moment).
Okay, thanks. How did you obtain that number: ran a script over the blockchain? ABE?
|
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5348
Merit: 13316
|
|
September 24, 2011, 08:26:21 PM |
|
Okay, thanks. How did you obtain that number: ran a script over the blockchain? ABE?
I queried the BBE database. It currently takes like 10 minutes to compute, though, which is why I don't make it available on any page.
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
dree12 (OP)
Legendary
Offline
Activity: 1246
Merit: 1077
|
|
September 24, 2011, 08:36:07 PM |
|
Okay, thanks. How did you obtain that number: ran a script over the blockchain? ABE?
I queried the BBE database. It currently takes like 10 minutes to compute, though, which is why I don't make it available on any page. You wasted 10 minutes to help me - I'm honored! I sent a tiny donation as a token of thanks.
|
|
|
|
iamzill
|
|
September 24, 2011, 08:53:56 PM |
|
Sorry for the stupid question, but how did 20 nanobitcoins get destroyed in that block? I thought bitcoins never gets destroyed, they can only become irretrievable?
|
|
|
|
error
|
|
September 24, 2011, 09:47:27 PM |
|
Sorry for the stupid question, but how did 20 nanobitcoins get destroyed in that block? I thought bitcoins never gets destroyed, they can only become irretrievable?
Did you not see that the generated coins were 49.99999999 instead of 50?
|
3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
|
|
|
ShadowOfHarbringer
Legendary
Offline
Activity: 1470
Merit: 1006
Bringing Legendary Har® to you since 1952
|
|
September 24, 2011, 09:55:44 PM |
|
Sorry for the stupid question, but how did 20 nanobitcoins get destroyed in that block? I thought bitcoins never gets destroyed, they can only become irretrievable?
Did you not see that the generated coins were 49.99999999 instead of 50? More important questions: 1. Was that expected when the Bitcoin protocol was designed, or is this something new ? 2. Is it proper for a block to generate 49.99999999 bitcoins instead of the usual 50 ? Where did the 0.00000001 bitcoins go ? 3. If it is not proper, why wouldn't the network reject such a block ?
|
|
|
|
iamzill
|
|
September 24, 2011, 10:30:40 PM |
|
Sorry for the stupid question, but how did 20 nanobitcoins get destroyed in that block? I thought bitcoins never gets destroyed, they can only become irretrievable?
Did you not see that the generated coins were 49.99999999 instead of 50? No, I missed it. So how did this happen? Did a miner intentionally reduce his profits? Was it a bug in his code? How come all other nodes accepted this block?
|
|
|
|
maaku
Legendary
Offline
Activity: 905
Merit: 1012
|
|
September 24, 2011, 11:24:41 PM Last edit: September 24, 2011, 11:41:43 PM by maaku |
|
@ShadowOfHarbringer: those 0.00000002 BTC were never generated. Transactions are allowed to have fewer TxOut than TxIn--the difference is the Tx fee. Does the Satoshi client allow for the same discrepancy in the generating transaction? That would be news to me but explain what's going on here. The miner is failing to claim as many BTC as they are entitled to, resulting in fewer BTC generated for that block than would be expected. So this isn't really a case of coins being destroyed as much as new coins not being minted--but if the miner set the generator Tx0ut to zero, those transaction fees would be destroyed.
Anyone know why this happened? Looks like a buggy miner subtracted the Tx fee instead of adding it--but why was the block accepted by the network?
@theymos: that's an awfully round number. Are there 4 blocks that didn't generate bitcoins at all?
|
I'm an independent developer working on bitcoin-core, making my living off community donations. If you like my work, please consider donating yourself: 13snZ4ZyCzaL7358SmgvHGC9AxskqumNxP
|
|
|
ShadowOfHarbringer
Legendary
Offline
Activity: 1470
Merit: 1006
Bringing Legendary Har® to you since 1952
|
|
September 24, 2011, 11:44:03 PM |
|
Looks like a buggy miner subtracted the Tx fee instead of adding it--but why was the block accepted by the network?
Exactly. That could be a serious weakness in the protocol. Why would all other clients accept such blocks ? Shoudn't there be a rule that only allows relaying/accepting of completely valid and "full" blocks ? For example: if a huge mining pool suddenly breaks down and starts producing blocks which earn 0 BTC to the network, then a lot of BTC could be lost in the process.
|
|
|
|
|
maaku
Legendary
Offline
Activity: 905
Merit: 1012
|
|
September 24, 2011, 11:57:10 PM |
|
Interesting, thanks.
|
I'm an independent developer working on bitcoin-core, making my living off community donations. If you like my work, please consider donating yourself: 13snZ4ZyCzaL7358SmgvHGC9AxskqumNxP
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5348
Merit: 13316
|
|
September 24, 2011, 11:58:48 PM |
|
Yeah, I was definitely off by 100 BTC. The number lost is actually 100.01000001. All losses are accounted for, then: 100 BTC from duplicates and 0.01000001 from the transaction dree12 linked to (0.01 fee that BBE mishandles plus the satoshi dropped purposefully by the miner). You wasted 10 minutes to help me - I'm honored! I sent a tiny donation as a token of thanks.
Thanks!
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
bfever
Jr. Member
Offline
Activity: 39
Merit: 1
|
|
September 26, 2011, 07:35:37 PM |
|
According to my database (it only stores bitcoins in txouts not spent, that takes only 1.86 seconds to get the result), I get 727699999899998 satoshi's available after 145542 blocks, which means there are 100.00100002 "lost". 2x 50 coins are "lost" due to duplicate transactions in generation, which my database didn't like at first (because it has a unique tx hash index). Didn't know up to know if the others where rounding errors on my side, but it seems the 2 satoshi's are indeed from block 124724. So that's only 0.001 bitcoin not yet accounted for...
|
|
|
|
2112
Legendary
Offline
Activity: 2128
Merit: 1073
|
|
September 26, 2011, 07:39:16 PM |
|
So that's only 0.001 bitcoin not yet accounted for...
I think those are the transaction fees that are available in that block but unclaimed by the miner.
|
|
|
|
BookLover
|
|
September 27, 2011, 09:48:23 PM |
|
What could cause this to happen and how could it be prevented?
|
|
|
|
piuk
|
|
September 27, 2011, 10:01:02 PM |
|
|
|
|
|
Maged
Legendary
Offline
Activity: 1204
Merit: 1015
|
|
September 27, 2011, 11:32:11 PM |
|
Are you sure it's not a problem with your database theymos? The other block explorers report the 50 BTC generated ok
That's because the 50 BTC was, indeed, generated ok. It's just not possible to spend the duplicate transactions since the Bitcoin client considers the two transactions to be one and the same.
|
|
|
|
|