aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKennan Mell <kmell96@gmail.com>2021-10-16 13:35:57 -0700
committerGitHub <noreply@github.com>2021-10-16 13:35:57 -0700
commit1946af2c45372e3de39000a45a5954bb5870bc1b (patch)
treeadfbaaeb1b9a77d5539aebd69190e0d087d8177d
parentfeedb9c84e72e4fff489810a2bbeec09bcda5763 (diff)
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.
-rw-r--r--src/consensus/amount.h1
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.