mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 13:47:56 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user