diff options
author | W. J. van der Laan <laanwj@protonmail.com> | 2021-10-21 19:56:24 +0200 |
---|---|---|
committer | W. J. van der Laan <laanwj@protonmail.com> | 2021-10-21 19:58:44 +0200 |
commit | 179ce098333b55664fea048c52c60a0f74996bf2 (patch) | |
tree | 7b2e8a024e6968cc407b123c735e320e7746077a /src | |
parent | 8a083bc5b57ff98f2e3c550f1b10dba202e3aa79 (diff) | |
parent | 1946af2c45372e3de39000a45a5954bb5870bc1b (diff) |
Merge bitcoin/bitcoin#23293: doc: Add comment to COIN constant.
1946af2c45372e3de39000a45a5954bb5870bc1b Add comment to COIN constant. (Kennan Mell)
Pull request description:
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.
ACKs for top commit:
lsilva01:
ACK 1946af2
shaavan:
ACK 1946af2c45372e3de39000a45a5954bb5870bc1b
Tree-SHA512: ba27c6bd4a4c92664a71ef081104e9e50e47022d68eb955c247b7c49a0046a42bf64bf23a14563c646411b7be6027fea918cc62baa01bbf319b82d14d368f280
Diffstat (limited to 'src')
-rw-r--r-- | src/consensus/amount.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consensus/amount.h b/src/consensus/amount.h index 8b41a2277d..96566ea13f 100644 --- a/src/consensus/amount.h +++ b/src/consensus/amount.h @@ -11,6 +11,7 @@ /** Amount in satoshis (Can be negative) */ typedef int64_t CAmount; +/** The amount of satoshis in one BTC. */ static constexpr CAmount COIN = 100000000; /** No amount larger than this (in satoshi) is valid. |