From 8baf00e0c43ee0ba748cf34fc76c491799f42394 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 25 Nov 2020 01:09:17 +0000 Subject: [PATCH] core_io: Add ValueFromFeeRate helper --- src/core_io.h | 2 ++ src/core_write.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/core_io.h b/src/core_io.h index 4405f5c8f8..fd33629db5 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); std::string SighashToStr(unsigned char sighash_type); diff --git a/src/core_write.cpp b/src/core_write.cpp index 63f2c36b5a..7254ef760d 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include