diff options
| author | Ross Nicoll <[email protected]> | 2015-08-01 20:15:23 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-08-03 22:58:30 +0100 |
| commit | 9ca7857df74c52eb2c46be36c88a12879be6cf8c (patch) | |
| tree | b9273763228ed4a847d3bc64c7c68c820c0b0e84 /src/amount.cpp | |
| parent | Merge pull request #6473 (diff) | |
| download | discoin-9ca7857df74c52eb2c46be36c88a12879be6cf8c.tar.xz discoin-9ca7857df74c52eb2c46be36c88a12879be6cf8c.zip | |
Rationalize currency unit to "BTC"
Previously various user-facing strings have used inconsistent currency units "BTC",
"btc" and "bitcoins". This adds a single constant and uses it for each reference to
the currency unit.
Also adds a description of the unit for --maxtxfee, and adds the missing "amount"
field description to the (deprecated) move RPC command.
Diffstat (limited to 'src/amount.cpp')
| -rw-r--r-- | src/amount.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amount.cpp b/src/amount.cpp index 0a394c96f..b46918198 100644 --- a/src/amount.cpp +++ b/src/amount.cpp @@ -7,6 +7,8 @@ #include "tinyformat.h" +const std::string CURRENCY_UNIT = "BTC"; + CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nSize) { if (nSize > 0) @@ -27,5 +29,5 @@ CAmount CFeeRate::GetFee(size_t nSize) const std::string CFeeRate::ToString() const { - return strprintf("%d.%08d BTC/kB", nSatoshisPerK / COIN, nSatoshisPerK % COIN); + return strprintf("%d.%08d %s/kB", nSatoshisPerK / COIN, nSatoshisPerK % COIN, CURRENCY_UNIT); } |