mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge #9615: Wallet incremental fee
4b189c1Change bumpfee result value from 'oldfee' to 'origfee'. (Alex Morcos)0c0c63fIntroduce WALLET_INCREMENTAL_RELAY_FEE (Alex Morcos)e8021ecUse CWallet::GetMinimumFee in bumpfee (Alex Morcos)ae9719aRefactor GetMinimumFee to give option of providing targetFee (Alex Morcos)fe8e8ef[rpc] Add incremental relay fee to getnetworkinfo (Alex Morcos)6b331e6Fix to have miner test aware of new separate block min tx fee (Alex Morcos)de6400dFix missing use of dustRelayFee (Alex Morcos)5b15870Use incrementalRelayFee for BIP 125 replacement (Alex Morcos)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "net.h"
|
||||
#include "net_processing.h"
|
||||
#include "netbase.h"
|
||||
#include "policy/policy.h"
|
||||
#include "protocol.h"
|
||||
#include "sync.h"
|
||||
#include "timedata.h"
|
||||
@@ -417,6 +418,7 @@ UniValue getnetworkinfo(const JSONRPCRequest& request)
|
||||
" ,...\n"
|
||||
" ],\n"
|
||||
" \"relayfee\": x.xxxxxxxx, (numeric) minimum relay fee for non-free transactions in " + CURRENCY_UNIT + "/kB\n"
|
||||
" \"incrementalfee\": x.xxxxxxxx, (numeric) minimum fee increment for mempool limiting or BIP 125 replacement in " + CURRENCY_UNIT + "/kB\n"
|
||||
" \"localaddresses\": [ (array) list of local addresses\n"
|
||||
" {\n"
|
||||
" \"address\": \"xxxx\", (string) network address\n"
|
||||
@@ -447,6 +449,7 @@ UniValue getnetworkinfo(const JSONRPCRequest& request)
|
||||
}
|
||||
obj.push_back(Pair("networks", GetNetworksInfo()));
|
||||
obj.push_back(Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK())));
|
||||
obj.push_back(Pair("incrementalfee", ValueFromAmount(::incrementalRelayFee.GetFeePerK())));
|
||||
UniValue localAddresses(UniValue::VARR);
|
||||
{
|
||||
LOCK(cs_mapLocalHost);
|
||||
|
||||
Reference in New Issue
Block a user