Page MenuHomePhabricator

Isolating MAX_COINBASE_SCRIPTSIG_SIZE
ClosedPublic

Authored by vermorel on Jul 26 2018, 14:11.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rSTAGING48cd2fecb4ab: Isolating MAX_COINBASE_SCRIPTSIG_SIZE
rABC48cd2fecb4ab: Isolating MAX_COINBASE_SCRIPTSIG_SIZE
Summary

The constant MAX_COINBASE_SCRIPTSIG_SIZE was badly located in
'miner.cpp' and thus moved to 'consensus.h'. Furthermore, the
validation was relying on an inline magic number which is now
replaced by the constant.

Test Plan

Compile and run automated tests.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Jul 26 2018, 14:11
deadalnix requested changes to this revision.Jul 26 2018, 17:05
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/validation.cpp
487 ↗(On Diff #4437)

clang-format should have formatted this.

This revision now requires changes to proceed.Jul 26 2018, 17:05

Sorry, I had not figured out the upgrade from clang-format-3.5 to clang-format-4.0. Thanks for your patience!

This revision is now accepted and ready to land.Jul 26 2018, 17:12
This revision was automatically updated to reflect the committed changes.