mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Add comment to COIN constant.
The COIN constant is critical in understanding Bitcoin's supply, but what it represents isn't clear from the name of the constant. Adding a comment clarifies the meaning of the constant for future readers.
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
/** Amount in satoshis (Can be negative) */
|
/** Amount in satoshis (Can be negative) */
|
||||||
typedef int64_t CAmount;
|
typedef int64_t CAmount;
|
||||||
|
|
||||||
|
/** The amount of satoshis in one BTC. */
|
||||||
static constexpr CAmount COIN = 100000000;
|
static constexpr CAmount COIN = 100000000;
|
||||||
|
|
||||||
/** No amount larger than this (in satoshi) is valid.
|
/** No amount larger than this (in satoshi) is valid.
|
||||||
|
|||||||
Reference in New Issue
Block a user