Page MenuHomePhabricator

Make SCRIPT_ENABLE_SIGHASH_FORKID a mandatory flag.
ClosedPublic

Authored by deadalnix on Aug 9 2017, 19:14.

Details

Summary

As per title.

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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
forkidstd
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 710
Build 710: arc lint + arc unit

Event Timeline

src/script/sign.cpp
276

These two are no longer equivalent:

new code:

MANDATORY_SCRIPT_VERIFY_FLAGS  == SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | SCRIPT_ENABLE_SIGHASH_FORKID,

whereas old code was basically:

SCRIPT_VERIFY_STRICTENC|SCRIPT_ENABLE_SIHGASH_FORKID

Is this intentional?

src/script/sign.cpp
276

It is so that we don't need to add more flag in there. The P2SH one doesn't really matter, because this code wants to check the signature. But if we add new mandatory signature checks, they'll get added there automatically.

This looks ok to me.. I'm accepting.

src/script/sign.cpp
276

OK, I am not too familiar with this code so if you say it works because P2SH is ignored, then ok.

This revision is now accepted and ready to land.Aug 10 2017, 15:18
This revision was automatically updated to reflect the committed changes.