Fix -ac_script not changing magic

This commit is contained in:
jl777
2018-12-14 04:18:10 -11:00
parent 12b2a9ed88
commit c338c2922a

View File

@@ -1883,9 +1883,9 @@ void komodo_args(char *argv0)
}
if ( ASSETCHAINS_SCRIPTPUB.size() > 1 )
{
//decode_hex(&extraptr[extralen],ASSETCHAINS_SCRIPTPUB.size()/2,(char *)ASSETCHAINS_SCRIPTPUB.c_str());
//extralen += ASSETCHAINS_SCRIPTPUB.size()/2;
extralen += iguana_rwnum(1,&extraptr[extralen],(int32_t)ASSETCHAINS_SCRIPTPUB.size(),(void *)ASSETCHAINS_SCRIPTPUB.c_str());
decode_hex(&extraptr[extralen],ASSETCHAINS_SCRIPTPUB.size()/2,(char *)ASSETCHAINS_SCRIPTPUB.c_str());
extralen += ASSETCHAINS_SCRIPTPUB.size()/2;
//extralen += iguana_rwnum(1,&extraptr[extralen],(int32_t)ASSETCHAINS_SCRIPTPUB.size(),(void *)ASSETCHAINS_SCRIPTPUB.c_str());
fprintf(stderr,"append ac_script %s\n",ASSETCHAINS_SCRIPTPUB.c_str());
}
}