Also log incoming script when we see an incorrect coinbase pubkey
This commit is contained in:
@@ -1664,9 +1664,14 @@ int64_t hush_checkcommission(CBlock *pblock,int32_t height)
|
||||
{
|
||||
int32_t i;
|
||||
fprintf(stderr,"%s: ASSETCHAINS_SCRIPTPUB=", __func__);
|
||||
for (i=0; i<ASSETCHAINS_SCRIPTPUB.size(); i++)
|
||||
for (i=0; i<ASSETCHAINS_SCRIPTPUB.size(); i++) {
|
||||
fprintf(stderr,"%02x",ASSETCHAINS_SCRIPTPUB[i]);
|
||||
}
|
||||
fprintf(stderr," vs script=");
|
||||
for (i=0; i<scriptlen; i++) {
|
||||
fprintf(stderr,"%02x",script[i]);
|
||||
}
|
||||
}
|
||||
fprintf(stderr," -ac[%d] payment to wrong pubkey scriptlen.%d, scriptpub[%d] checktoshis.%llu\n",(int32_t)ASSETCHAINS_SCRIPTPUB.size(),scriptlen,(int32_t)ASSETCHAINS_SCRIPTPUB.size()/2,(long long)checktoshis);
|
||||
return(-1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user