Post
Topic
Board Beginners & Help
cloning bitcoin MAX_MONEY not working
by
chicodosbitcoin
on 01/04/2018, 20:08:33 UTC
I just clonned bitcoin and created a altcoin, the altcoin it is working , but the coin ammount seams not working well.

total of coins I chosed was: 1000

I have changed the amount of coins to be mined, to be 1000 but looks did not work, I have already 8000 coins mined, can someone explain why it is not working?

main.h

Code:
static const int64 MAX_MONEY = 1000 * COIN;  //coin limit

someone answer this but i kinda did not understand:

Code:
static const int64 MAX_MONEY = 1000 * COIN;  //coin limit

Maximum amount (in satoshi) allowed anywhere (in the whole network). COIN is equal to 10^8 This is NOT the total amount of coins which your software is going to produce.     Huh Huh Huh Huh Huh

I could find litecoin uses:
Code:
static const int64 MAX_MONEY = 84000000 * COIN;

potcoin uses:
Code:
static const int64 MAX_MONEY = 420000000 * COIN;

feathercoin uses:
Code:
static const CAmount MAX_MONEY = 336000000 * COIN;

why when I changed my coin did not work?

I found some links on google talking about it but I still not understand well how to fix the coin limit:
https://bitcointalk.org/index.php?topic=331069.0
https://bitcoin.stackexchange.com/questions/36612/why-doesnt-changing-max-money-change-the-maximum-number-of-coins

how the calculation I need to do?

can someone explain me that.


thank you.