From 1946af2c45372e3de39000a45a5954bb5870bc1b Mon Sep 17 00:00:00 2001 From: Kennan Mell Date: Sat, 16 Oct 2021 13:35:57 -0700 Subject: 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. --- src/consensus/amount.h | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3