File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
/** Amount in satoshis (Can be negative) */
12
12
typedef int64_t CAmount ;
13
13
14
- static const CAmount COIN = 100000000 ;
14
+ static constexpr CAmount COIN = 100000000 ;
15
15
16
16
/** No amount larger than this (in satoshi) is valid.
17
17
*
@@ -22,7 +22,7 @@ static const CAmount COIN = 100000000;
22
22
* critical; in unusual circumstances like a(nother) overflow bug that allowed
23
23
* for the creation of coins out of thin air modification could lead to a fork.
24
24
* */
25
- static const CAmount MAX_MONEY = 21000000 * COIN ;
25
+ static constexpr CAmount MAX_MONEY = 21000000 * COIN ;
26
26
inline bool MoneyRange (const CAmount & nValue ) { return (nValue >= 0 && nValue <= MAX_MONEY ); }
27
27
28
28
#endif // BITCOIN_CONSENSUS_AMOUNT_H
You can’t perform that action at this time.
0 commit comments