This commit is contained in:
blackjok3r
2018-10-16 16:06:49 +08:00
parent 3793c63860
commit b66f366d5c
3 changed files with 7 additions and 5 deletions

View File

@@ -1577,10 +1577,8 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height)
{
if ( height == 1 )
{
fprintf(stderr, "checking override pubkey thingo \n");
script = (uint8_t *)pblock->vtx[0].vout[0].scriptPubKey.data();
if ( script[0] != 33 || script[34] != OP_CHECKSIG || memcmp(script+1,ASSETCHAINS_OVERRIDE_PUBKEY33,33) != 0 ) {
fprintf(stderr, "failed the check\n");
return(-1);
}
}