Skip to content

Commit 69158b4

Browse files
committed
added CURRENCY_ATOM to express minimum indivisible unit
also moved CURRENCY_* into feerate.h file to work around MSVC bug
1 parent d4f9ae0 commit 69158b4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/policy/feerate.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#include <tinyformat.h>
99

10-
const std::string CURRENCY_UNIT = "BTC";
11-
1210
CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nBytes_)
1311
{
1412
assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));

src/policy/feerate.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
#include <string>
1313

14-
extern const std::string CURRENCY_UNIT;
14+
const std::string CURRENCY_UNIT = "BTC"; // One formatted unit
15+
const std::string CURRENCY_ATOM = "sat"; // One indivisible minimum value unit
1516

1617
/**
1718
* Fee rate in satoshis per kilobyte: CAmount / kB

0 commit comments

Comments
 (0)