mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Merge bitcoin/bitcoin#33189: rpc: followups for 33106
daa40a3ff9doc fixups for 33106 (glozow)c568511e8ctest fixup for incremental feerate (glozow)636fa219d3test fixups (glozow)9169a50d52[rpc] expose blockmintxfee via getmininginfo (glozow) Pull request description: Followups from #33106: - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2271855287 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2271909132 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2274373368 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2275327727 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2275120698 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2275470140 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2271864670 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2275120698 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2277786375 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2277669475 - https://github.com/bitcoin/bitcoin/pull/33106#discussion_r2279251263 ACKs for top commit: ajtowns: ACKdaa40a3ff9; cursory review, seems reasonable davidgumberg: ACKdaa40a3ff9instagibbs: ACKdaa40a3ff9Tree-SHA512: d6f0ae5d00dadfbaf0998ac332c8536c997628de4f2b9947eb57712f05d3afa19a823c9cc007435be320640cd13a4c500db20c9606988cdd371934496dec009d
This commit is contained in:
@@ -429,6 +429,7 @@ static RPCHelpMan getmininginfo()
|
||||
{RPCResult::Type::STR_HEX, "target", "The current target"},
|
||||
{RPCResult::Type::NUM, "networkhashps", "The network hashes per second"},
|
||||
{RPCResult::Type::NUM, "pooledtx", "The size of the mempool"},
|
||||
{RPCResult::Type::STR_AMOUNT, "blockmintxfee", "Minimum feerate of packages selected for block inclusion in " + CURRENCY_UNIT + "/kvB"},
|
||||
{RPCResult::Type::STR, "chain", "current network name (" LIST_CHAIN_NAMES ")"},
|
||||
{RPCResult::Type::STR_HEX, "signet_challenge", /*optional=*/true, "The block challenge (aka. block script), in hexadecimal (only present if the current network is a signet)"},
|
||||
{RPCResult::Type::OBJ, "next", "The next block",
|
||||
@@ -469,6 +470,9 @@ static RPCHelpMan getmininginfo()
|
||||
obj.pushKV("target", GetTarget(tip, chainman.GetConsensus().powLimit).GetHex());
|
||||
obj.pushKV("networkhashps", getnetworkhashps().HandleRequest(request));
|
||||
obj.pushKV("pooledtx", (uint64_t)mempool.size());
|
||||
BlockAssembler::Options assembler_options;
|
||||
ApplyArgsManOptions(*node.args, assembler_options);
|
||||
obj.pushKV("blockmintxfee", ValueFromAmount(assembler_options.blockMinFeeRate.GetFeePerK()));
|
||||
obj.pushKV("chain", chainman.GetParams().GetChainTypeString());
|
||||
|
||||
UniValue next(UniValue::VOBJ);
|
||||
|
||||
Reference in New Issue
Block a user