Bitcoin Forum
March 19, 2024, 10:46:56 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: Is blockexplorer's total bitcoins in existance accurate?  (Read 3199 times)
dree12 (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1076



View Profile
September 24, 2011, 07:42:52 PM
 #1

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?
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710845216
Hero Member
*
Offline Offline

Posts: 1710845216

View Profile Personal Message (Offline)

Ignore
1710845216
Reply with quote  #2

1710845216
Report to moderator
tcatm
Sr. Member
****
qt
Offline Offline

Activity: 337
Merit: 263


View Profile
September 24, 2011, 08:03:02 PM
 #2

Yes, it's the total number of bitcoins generated; not the number if bitcoins "available".
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5138
Merit: 12565


View Profile
September 24, 2011, 08:17:38 PM
 #3

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 Offline

Activity: 1246
Merit: 1076



View Profile
September 24, 2011, 08:21:21 PM
 #4

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 Offline

Activity: 5138
Merit: 12565


View Profile
September 24, 2011, 08:26:21 PM
 #5

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 Offline

Activity: 1246
Merit: 1076



View Profile
September 24, 2011, 08:36:07 PM
 #6

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
Sr. Member
****
Offline Offline

Activity: 677
Merit: 250


View Profile
September 24, 2011, 08:53:56 PM
 #7

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
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
September 24, 2011, 09:47:27 PM
 #8

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 Offline

Activity: 1470
Merit: 1005


Bringing Legendary Har® to you since 1952


View Profile
September 24, 2011, 09:55:44 PM
 #9

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
Sr. Member
****
Offline Offline

Activity: 677
Merit: 250


View Profile
September 24, 2011, 10:30:40 PM
 #10

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
*
expert
Offline Offline

Activity: 905
Merit: 1011


View Profile
September 24, 2011, 11:24:41 PM
Last edit: September 24, 2011, 11:41:43 PM by maaku
 #11

@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 Offline

Activity: 1470
Merit: 1005


Bringing Legendary Har® to you since 1952


View Profile
September 24, 2011, 11:44:03 PM
 #12

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.

theymos
Administrator
Legendary
*
Offline Offline

Activity: 5138
Merit: 12565


View Profile
September 24, 2011, 11:50:35 PM
 #13

Quote from: maaku
@theymos: that's an awfully round number. Are there 4 blocks that didn't generate bitcoins at all?

At least two blocks didn't generate any BTC:
http://blockexplorer.com/block/00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec
http://blockexplorer.com/block/00000000000743f190a18c5577a3c2d2a1f610ae9601ac046a38084ccb7cd721

I'm not sure where where the other BTC was lost. My current database structure doesn't allow me to easily get the particulars. It's also possible my calculation was incorrect.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
maaku
Legendary
*
expert
Offline Offline

Activity: 905
Merit: 1011


View Profile
September 24, 2011, 11:57:10 PM
 #14

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 Offline

Activity: 5138
Merit: 12565


View Profile
September 24, 2011, 11:58:48 PM
 #15

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 Offline

Activity: 39
Merit: 1


View Profile WWW
September 26, 2011, 07:35:37 PM
 #16

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... Huh
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1060



View Profile
September 26, 2011, 07:39:16 PM
 #17

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.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
September 27, 2011, 09:48:23 PM
 #18

What could cause this to happen and how could it be prevented?

piuk
Hero Member
*****
expert
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
September 27, 2011, 10:01:02 PM
 #19

Quote from: maaku
@theymos: that's an awfully round number. Are there 4 blocks that didn't generate bitcoins at all?

At least two blocks didn't generate any BTC:
http://blockexplorer.com/block/00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec
http://blockexplorer.com/block/00000000000743f190a18c5577a3c2d2a1f610ae9601ac046a38084ccb7cd721

I'm not sure where where the other BTC was lost. My current database structure doesn't allow me to easily get the particulars. It's also possible my calculation was incorrect.

Are you sure it's not a problem with your database theymos? The other block explorers report the 50 BTC generated ok

http://pi.uk.com/bitcoin/block-index/92507/00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec

http://pident.artefact2.com/block/00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec

http://abe.john-edwin-tobey.org/block/00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec

Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
September 27, 2011, 11:32:11 PM
 #20

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.

Pages: [1] 2 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!