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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/script/sign.cpp
276 ↗(On Diff #1133)

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 ↗(On Diff #1133)

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 ↗(On Diff #1133)

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.