From 313655992358e426120a1f902e18161c09ca942f Mon Sep 17 00:00:00 2001 From: HouseOfHufflepuff Date: Sat, 21 Mar 2026 17:03:44 -0700 Subject: [PATCH] doc: Note that generateblock does not collect transaction fees The generateblock RPC creates blocks where the coinbase only includes the block subsidy, omitting transaction fees. Document this behavior in the RPC help text to avoid confusion. refs #31684 --- src/rpc/mining.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 514be2e84e4..a935810d914 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -305,7 +305,8 @@ static RPCHelpMan generatetoaddress() static RPCHelpMan generateblock() { return RPCHelpMan{"generateblock", - "Mine a set of ordered transactions to a specified address or descriptor and return the block hash.", + "Mine a set of ordered transactions to a specified address or descriptor and return the block hash.\n" + "Transaction fees are not collected in the block reward.", { {"output", RPCArg::Type::STR, RPCArg::Optional::NO, "The address or descriptor to send the newly generated bitcoin to."}, {"transactions", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of hex strings which are either txids or raw transactions.\n"