Skip to content

Commit

Permalink
Change Max Money and Coin Maturity
Browse files Browse the repository at this point in the history
Change Max Money and Coin Maturity
  • Loading branch information
HowToCloneAnAltcoin committed Nov 6, 2014
1 parent fe0d86a commit c433614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.h
Expand Up @@ -52,10 +52,10 @@ static const int64 DUST_SOFT_LIMIT = 100000; // 0.001 CLN
/** Dust Hard Limit, ignored as wallet inputs (mininput default) */ /** Dust Hard Limit, ignored as wallet inputs (mininput default) */
static const int64 DUST_HARD_LIMIT = 1000; // 0.00001 CLN mininput static const int64 DUST_HARD_LIMIT = 1000; // 0.00001 CLN mininput
/** No amount larger than this (in satoshi) is valid */ /** No amount larger than this (in satoshi) is valid */
static const int64 MAX_MONEY = 84000000 * COIN; static const int64 MAX_MONEY = 184000000 * COIN;
inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */ /** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100; static const int COINBASE_MATURITY = 20;
/** Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. */ /** Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. */
static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC
/** Maximum number of script-checking threads allowed */ /** Maximum number of script-checking threads allowed */
Expand Down

5 comments on commit c433614

@AngelTs
Copy link

@AngelTs AngelTs commented on c433614 Feb 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 184000000, but 840000000

@douglasdeodato
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAX_MONEY does not work I setup it to 1 million and the software already mined 1.5 million, how it possible?

@feltoxXx
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think MAX_MONEY is a variable, if you do not cap it by code it will go to the moon

@5mil
Copy link

@5mil 5mil commented on c433614 Sep 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max money is per transaction

@vanshtah
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is moved to amount.h

Please sign in to comment.