Skip to content

Commit 179ce09

Browse files
committed
Merge bitcoin/bitcoin#23293: doc: Add comment to COIN constant.
1946af2 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 1946af2 Tree-SHA512: ba27c6bd4a4c92664a71ef081104e9e50e47022d68eb955c247b7c49a0046a42bf64bf23a14563c646411b7be6027fea918cc62baa01bbf319b82d14d368f280
2 parents 8a083bc + 1946af2 commit 179ce09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/consensus/amount.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/** Amount in satoshis (Can be negative) */
1212
typedef int64_t CAmount;
1313

14+
/** The amount of satoshis in one BTC. */
1415
static constexpr CAmount COIN = 100000000;
1516

1617
/** No amount larger than this (in satoshi) is valid.

0 commit comments

Comments
 (0)