diff --git a/src/core_io.h b/src/core_io.h index 1f5ecbaea6..c8349c7594 100644 --- a/src/core_io.h +++ b/src/core_io.h @@ -13,6 +13,7 @@ class CBlock; class CBlockHeader; +class CFeeRate; class CScript; class CTransaction; struct CMutableTransaction; @@ -50,6 +51,7 @@ bool ParseHashStr(const std::string& strHex, uint256& result); // core_write.cpp UniValue ValueFromAmount(const CAmount amount); +UniValue ValueFromFeeRate(const CFeeRate& fee_rate); std::string FormatScript(const CScript& script); std::string EncodeHexTx(const CTransaction& tx, const int serializeFlags = 0); std::string SighashToStr(unsigned char sighash_type); diff --git a/src/core_write.cpp b/src/core_write.cpp index 7cf019a42e..4f5a6703a1 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include