The -blockreservedweight startup option should only affect RPC code, because IPC clients currently do not have a way to signal their intent to use the node default (the BlockCreateOptions struct defaults merely document a recommendation for client software).
Before this PR however, if the user set -blockreservedweight then ApplyArgsManOptions would cause the block_reserved_weight option passed by IPC clients to be ignored. Users who don’t set this value were not affected.
Fix this by having ApplyArgsManOptions not touch block_reserved_weight. Update RPC callers, in particular getblocktemplate, to explicitly set this option since it’s no longer automatic.
Test coverage is added.
mining_basic.py already ensured -blockreservedweight is enforced by mining RPC methods. This commit adds coverage for Mining interface IPC clients. It also verifies that -blockreservedweight has no effect on them.