diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-08-04 01:01:18 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-08-04 01:24:19 +0200 |
| commit | b6fee6b7c71cb339b3249860464d0a066b9a3147 (patch) | |
| tree | c1c4717bb8fe49e09512452211541eb19bc560e1 /src/amount.cpp | |
| parent | Merge pull request #6498 (diff) | |
| parent | Rationalize currency unit to "BTC" (diff) | |
| download | discoin-b6fee6b7c71cb339b3249860464d0a066b9a3147.tar.xz discoin-b6fee6b7c71cb339b3249860464d0a066b9a3147.zip | |
Merge pull request #6504
9ca7857 Rationalize currency unit to "BTC" (Ross Nicoll)
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); } |