3

In Bitcoin, there will only ever be ~21,000,000 coins (slightly less, technically, but I'll just use 21 million for easy calculation). Each bitcoin is 10^8 satoshis. This means there be a maximum:

2,100,000,000,000,000 satoshis
  • What is the equivalent number for Dogecoin?
  • Is it larger than the maximum 64 bit unsigned integer?
morsecoder
  • 14,008
  • 2
  • 42
  • 92

1 Answers1

3

Dogecoin has no maximum, because it mints 10k dogecoins per block, forever.

But to answer the spirit of your question, there are 100 million indivisible parts to a dogecoin. You can see that here.

static const int64_t COIN = 100000000;

There are currently 97 billion dogecoins. This is a bit more than 2^63 satoshis.

Is it larger than the maximum 64 bit unsigned integer?

No, but it wouldn't matter if it was. There isn't a limit of 2^64 satoshis on the total money in Bitcoin (or altcoins). However, there is a limit of 2^64 satoshis per output.

Nick ODell
  • 29,184
  • 11
  • 69
  • 129
  • Thanks, can you give a reference on the limit per output? – morsecoder Jan 28 '15 at 22:33
  • @StephenM347 It's not enforced anywhere in the code - but the [value field in outputs is an int64_t](https://en.bitcoin.it/wiki/Protocol_specification#tx). There is also a [separate check](https://github.com/bitcoin/bitcoin/blob/de8b9ab75718ef7663d5e8cc2f2135b8118730e7/src/main.cpp#L840) that the outputs are less than MAX_MONEY, but that can be changed pretty easily. – Nick ODell Jan 28 '15 at 22:48