Page MenuHomePhabricator

Pass flags down to GetP2SHSigOpCount and GetSigOpCountWithoutP2SH
ClosedPublic

Authored by deadalnix on Jul 25 2018, 17:57.

Details

Summary

This will ensure we can use flags to tweak the way sigops are counted in the future. That is necessary for the activation of OP_CHECKDATASIG .

Depends on D1596

Test Plan

Added test cases for the logic change.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Jul 25 2018, 19:21
This revision was automatically updated to reflect the committed changes.
markblundeberg added inline comments.
src/validation.cpp
455

(note: this introduced an immediate soft fork, satoshi style ;-D )