HomePhabricator

Prevent setting -blockmaxsize and -excessiveblocksize <= 0

Description

Prevent setting -blockmaxsize and -excessiveblocksize <= 0

Summary: This makes the init check consistent with the RPC. The GetArg() function returns an int which will then be casted to uint and might give unexpected results.

Test Plan:

./test/functional/test_runner.py abc-cmdline

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9744

Details

Provenance
FabienAuthored on Jul 7 2021, 09:01
FabienPushed on Jul 7 2021, 13:46
Reviewer
Restricted Project
Differential Revision
D9744: Prevent setting -blockmaxsize and -excessiveblocksize <= 0
Parents
rABC5e0b712845f9: [avalanche] Improve readability of the multi index container definitions
Branches
Unknown
Tags
Unknown