doged-io / doged

very currency, Bitcoin ABC edition
MIT License
13 stars 2 forks source link

Add CountScriptSigOps #21

Closed EyeOfPython closed 4 months ago

EyeOfPython commented 4 months ago

This adds back in a simplified version of CScript::GetSigOpCount (originally removed in D6101), but keeps it separate in the function CountScriptSigOps.

The function and Dogecoin's GetSigOpCount are identical in behavior, and OP_CHECKDATASIG(VERIFY) don't count as SigOps to avoid a fork.