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
This commit is contained in:
HouseOfHufflepuff
2026-03-21 17:03:44 -07:00
parent 483769c046
commit 3136559923

View File

@@ -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"