From 69158b41fc488e4f220559da17a475eff5923a95 Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Wed, 7 Aug 2019 11:32:51 +0900 Subject: added CURRENCY_ATOM to express minimum indivisible unit also moved CURRENCY_* into feerate.h file to work around MSVC bug --- src/policy/feerate.cpp | 2 -- src/policy/feerate.h | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/policy') diff --git a/src/policy/feerate.cpp b/src/policy/feerate.cpp index 14be6192fe..00c5c32eb3 100644 --- a/src/policy/feerate.cpp +++ b/src/policy/feerate.cpp @@ -7,8 +7,6 @@ #include -const std::string CURRENCY_UNIT = "BTC"; - CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nBytes_) { assert(nBytes_ <= uint64_t(std::numeric_limits::max())); diff --git a/src/policy/feerate.h b/src/policy/feerate.h index 61fa80c130..4e0673cae6 100644 --- a/src/policy/feerate.h +++ b/src/policy/feerate.h @@ -11,7 +11,8 @@ #include -extern const std::string CURRENCY_UNIT; +const std::string CURRENCY_UNIT = "BTC"; // One formatted unit +const std::string CURRENCY_ATOM = "sat"; // One indivisible minimum value unit /** * Fee rate in satoshis per kilobyte: CAmount / kB -- cgit v1.2.3