script: add ToByteVector() for converting anything with begin/end

This should move to a util header once their dependencies are cleaned up.
This commit is contained in:
Cory Fields
2014-09-24 22:54:08 -04:00
parent 066e2a1403
commit e9ca4280f3
9 changed files with 91 additions and 108 deletions

View File

@@ -78,7 +78,7 @@ bool Solver(const CKeyStore& keystore, const CScript& scriptPubKey, uint256 hash
{
CPubKey vch;
keystore.GetPubKey(keyID, vch);
scriptSigRet << vch;
scriptSigRet << ToByteVector(vch);
}
return true;
case TX_SCRIPTHASH: