diff options
author | fanquake <fanquake@gmail.com> | 2019-03-09 14:50:44 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-03-12 07:17:42 +0800 |
commit | 335931df4a37467299a2ee0ba521ecd5c4e6d39e (patch) | |
tree | 90ffc5409d6f1824f1fcdf648860512570b4de4f /src/rpc | |
parent | a4d0fd026b74db034dc8a1fa7efbd4f1dba8cdb9 (diff) |
rpc: return a number for estimated_feerate in analyzepsbt
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/rawtransaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 80d8c962d0..541171602e 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -2021,7 +2021,7 @@ UniValue analyzepsbt(const JSONRPCRequest& request) result.pushKV("estimated_vsize", (int)size); // Estimate fee rate CFeeRate feerate(fee, size); - result.pushKV("estimated_feerate", feerate.ToString()); + result.pushKV("estimated_feerate", ValueFromAmount(feerate.GetFeePerK())); } result.pushKV("fee", ValueFromAmount(fee)); |