HomePhabricator

Add command line option -excessiveblocksize

Description

Add command line option -excessiveblocksize

Summary:
This patch also adds a new command line option:

-excessiveblocksize=<size_in_bytes>

which sets the maximum size of blocks accepted.

A command line option is needed by users and also urgently by regression tests where one wants to start the client up with the right accept limit (> 1MB) in order to test increased size of blocks.

Later, we might consider adding an RPC call to set blockmaxsize, which would also help in testing.

The option name and semantic has been borrowed from BU.

The included abc-cmdline.py tests checks interaction between the accepted size and blockmaxsize .

Test Plan:
make check
qa/pull-tester/rpc-tests.py -extended

Reviewers: #bitcoin_abc, deadalnix, sickpig, kyuupichan

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
freetraderAuthored on Jun 11 2017, 22:08
freetraderPushed on Jun 11 2017, 22:46
Reviewer
Restricted Project
Differential Revision
Restricted Differential Revision
Parents
rABCbc51be0982f9: Format serialize_tests.h
Branches
Unknown
Tags
Unknown