HomePhabricator

Implement a block size dependent sigops limit.

Description

Implement a block size dependent sigops limit.

Summary:
This implement a sigops limit strategy compatible with BU's . The limit is computed by multiplying the size of the block in MB rounded up to the closest integer by 20k.

Equivalent Classic patch for referrence: https://github.com/bitcoinclassic/bitcoinclassic/pull/246

Depends on D126

Test Plan:

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

Reviewers: freetrader, sickpig, #bitcoin_abc, kyuupichan

Reviewed By: freetrader, #bitcoin_abc, kyuupichan

Subscribers: kyuupichan

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

Details

Provenance
deadalnixAuthored on Jun 8 2017, 17:39
deadalnixPushed on Jun 9 2017, 10:40
Reviewer
Restricted Project
Differential Revision
Restricted Differential Revision
Parents
rABC5ebe12993612: Import draft BUIP-HF spec and replay-protected-sighash spec
Branches
Unknown
Tags
Unknown