1 minor finding · 5 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · output schema and help labels omit accepted types
The hidden output schema excludes accepted strings and reward-object arrays; no current schema-driven consumer of hidden-method schemas was found, so practical client impact is unconfirmed.
Location: src/rpc/mining.cpp:340 (head).
Details and suggested fix
Declaring a skip-type-checked ARR with STR elements and no type_str makes getopenrpcinfo(true) export an array-of-strings-or-object schema. A validating client would reject the supported bare address/descriptor and custom-reward array forms, while accepting a top-level object that the handler rejects. The human help also labels the argument as (json array) with (string) elements, although its prose mentions the other forms. Add a type_str override such as {"", "string or array"} to avoid the restrictive fallback and emit a permissive annotated schema. Label the elements as string-or-object too, and cover the hidden method in rpc_openrpc.py.
Optional improvements
[suggestion] · Custom amounts are base allocations, not fixed payouts
The help and release note call custom amounts fixed, but the allocation loop adds a share of the remaining reward to those outputs too.
Location: src/rpc/mining.cpp:344 (head).
Details and suggested fix
The mixed test expects [address, {address2: 8*COIN}, address3] to pay the 8 BTC entry 13.66666667 BTC. The implementation does not distinguish fixed recipients from remainder recipients: every entry receives reward_parted and possibly a remainder satoshi. Allocations that exhaust the reward budget avoid that addition, but mixed entries do not designate an exact payment independently of the remainder split. Preserve the tested additive behavior by calling these values base allocations in the help and release note. State that they also share the remaining reward, including any collected fees, and show a mixed example with its final amounts rather than ending the release note with an unconditional equal-split claim.
[suggestion] · Help drops the explicit-list fee warning
Removing the fee warning hides that explicit transaction lists still distribute only the subsidy, while the new omitted-transactions mode also distributes selected fees.
Location: src/rpc/mining.cpp:338 (head).
Details and suggested fix
An explicit list starts with a use_mempool = false template and appends transactions after the coinbase value is set. Regenerating commitments does not recalculate that value, so the transactions' fees remain unclaimed, as they did before this PR. Omitting transactions instead rebuilds the template with mempool selection and includes the selected fees in total_reward. Consequently, custom allocations covering subsidy plus fees can succeed in automatic mode but exceed the RPC's payout budget for the same explicit transaction set. Restore the warning as a mode-specific note in the help and release note: omitted transactions distribute selected fees, while explicit lists distribute only the subsidy.
[suggestion] · Custom-payout tests reuse one recipient
address, address2, and address3 are identical, so the custom-reward tests cannot detect an amount paired with the wrong recipient.
Location: test/functional/rpc_generate.py:72 (head).
Details and suggested fix
MiniWallet.get_address() returns the stored address rather than generating a new one. The per-index value assertions can therefore pass even if custom-object processing attaches those values to the wrong destination. The witness-prefix case checks distinct raw scripts, but only through string entries. Obtain the additional destinations from MiniWallet instances with different tag_name values, keeping the original untagged wallet for funding. Assert that the addresses differ and retain the per-output address and amount checks.
[suggestion] · Over-allocation test misses the cumulative sum check
The single-entry 51 BTC rejection would still pass if the guard checked each amount separately instead of their sum.
Location: test/functional/rpc_generate.py:248 (head).
Details and suggested fix
Each amount in [{address: 15*COIN}, {address2: 15*COIN}] is below the early fixture's 25 BTC subsidy, but their sum exceeds it. An incorrect per-entry guard would accept them, after which the negative equal share would reduce both outputs to 12.5 BTC and leave a valid block. Add this case beside the early custom-reward fixtures, before parallel mining can change the subsidy, and expect -8 with Sum of custom rewards exceeds the total block reward. This distinguishes cumulative validation from rejecting an individually oversized amount.
[suggestion] · Weight test misses the coinbase output-count boundary
Both weight-test cases stay below the 253-output CompactSize boundary, so they cannot detect removal of the new output-count weight adjustment.
Location: test/functional/rpc_generate.py:289 (head).
Details and suggested fix
The cases produce 65 and 101 coinbase outputs including the witness commitment, making output_count_increase zero in both. At 253 outputs, the count grows by two non-witness bytes, or 8 WU. Omitting that term could admit a transaction that pushes the final block above a configured lower -blockmaxweight, which consensus validation does not enforce. Add a case with 252 raw(51) payouts and a raised cap chosen so a known-weight mempool transaction would exceed it by a few WU. Assert that the transaction remains in the mempool and the block stays within the cap, accounting for the assembler's strict >= comparison.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Test multi-output payouts with mempool fees and witness transactions