Abstract out SignatureChecker

This commit is contained in:
Pieter Wuille
2014-09-10 14:42:22 +02:00
parent 6faee79426
commit c7829ea797
4 changed files with 37 additions and 14 deletions

View File

@@ -174,7 +174,7 @@ static CScript CombineMultisig(CScript scriptPubKey, const CMutableTransaction&
if (sigs.count(pubkey))
continue; // Already got a sig for this pubkey
if (CheckSig(sig, pubkey, scriptPubKey, txTo, nIn, 0))
if (SignatureChecker(txTo, nIn).CheckSig(sig, pubkey, scriptPubKey, 0))
{
sigs[pubkey] = sig;
break;