mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
Always return getpeerinfo "minfeefilter" field (for v24 backport)
with its pre-existing v23 default value of 0.
This commit is contained in:
parent
9cd6682545
commit
1f448542e7
1 changed files with 2 additions and 4 deletions
|
@ -146,7 +146,7 @@ static RPCHelpMan getpeerinfo()
|
||||||
{
|
{
|
||||||
{RPCResult::Type::STR, "permission_type", Join(NET_PERMISSIONS_DOC, ",\n") + ".\n"},
|
{RPCResult::Type::STR, "permission_type", Join(NET_PERMISSIONS_DOC, ",\n") + ".\n"},
|
||||||
}},
|
}},
|
||||||
{RPCResult::Type::NUM, "minfeefilter", /*optional=*/true, "The minimum fee rate for transactions this peer accepts"},
|
{RPCResult::Type::NUM, "minfeefilter", "The minimum fee rate for transactions this peer accepts"},
|
||||||
{RPCResult::Type::OBJ_DYN, "bytessent_per_msg", "",
|
{RPCResult::Type::OBJ_DYN, "bytessent_per_msg", "",
|
||||||
{
|
{
|
||||||
{RPCResult::Type::NUM, "msg", "The total bytes sent aggregated by message type\n"
|
{RPCResult::Type::NUM, "msg", "The total bytes sent aggregated by message type\n"
|
||||||
|
@ -247,9 +247,7 @@ static RPCHelpMan getpeerinfo()
|
||||||
permissions.push_back(permission);
|
permissions.push_back(permission);
|
||||||
}
|
}
|
||||||
obj.pushKV("permissions", permissions);
|
obj.pushKV("permissions", permissions);
|
||||||
if (fStateStats) {
|
obj.pushKV("minfeefilter", fStateStats ? ValueFromAmount(statestats.m_fee_filter_received) : 0);
|
||||||
obj.pushKV("minfeefilter", ValueFromAmount(statestats.m_fee_filter_received));
|
|
||||||
}
|
|
||||||
|
|
||||||
UniValue sendPerMsgType(UniValue::VOBJ);
|
UniValue sendPerMsgType(UniValue::VOBJ);
|
||||||
for (const auto& i : stats.mapSendBytesPerMsgType) {
|
for (const auto& i : stats.mapSendBytesPerMsgType) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue