diff options
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -41,6 +41,12 @@ static const int64 MAX_MONEY = 21000000 * COIN; | |||
| 41 | inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } | 41 | inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } |
| 42 | static const int64 CENT = 1000000; | 42 | static const int64 CENT = 1000000; |
| 43 | static const int COINBASE_MATURITY = 100; | 43 | static const int COINBASE_MATURITY = 100; |
| 44 | // Depth at which a coinbase we mined is actually usable. CMerkleTx::GetCredit | ||
| 45 | // values a coinbase at zero until GetBlocksToMaturity() reaches 0, which is | ||
| 46 | // this depth -- not COINBASE_MATURITY. Anything that plans to *spend* mined | ||
| 47 | // coin must gate on this, or it will try to pay out of a balance the wallet | ||
| 48 | // still reports as zero. Both rules live here so they cannot drift apart. | ||
| 49 | static const int COINBASE_SPENDABLE_DEPTH = COINBASE_MATURITY + 20; | ||
| 44 | 50 | ||
| 45 | // Bitflash difficulty floor. The PoW is RandomX (memory-hard), ~1000x slower | 51 | // Bitflash difficulty floor. The PoW is RandomX (memory-hard), ~1000x slower |
| 46 | // per hash than SHA-256d, so the target is much easier than Bitcoin's to let a | 52 | // per hash than SHA-256d, so the target is much easier than Bitcoin's to let a |