mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-18 22:20:44 +02: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:
parent
feedb9c84e
commit
1946af2c45
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user