This commit is contained in:
jl777
2018-09-10 06:55:02 -11:00
parent bfd5344dc8
commit 3242301d14
2 changed files with 14 additions and 4 deletions

View File

@@ -457,7 +457,17 @@ int64_t GatewaysVerify(char *refdepositaddr,uint256 oracletxid,int32_t claimvout
txid = tx.GetHash();
nValue = tx.vout[i].nValue;
break;
} else fprintf(stderr,"claimvout.%d scriptPubKey mismatch\n",claimvout);
}
else
{
int j;
for (j=0; j<25; j++)
fprintf(stderr,"%02x",((uint8_t *)&scriptPubKey)[j]);
fprintf(stderr," scriptPubKey\n");
for (j=0; j<25; j++)
fprintf(stderr,"%02x",((uint8_t *)&tx.vout[claimvout].scriptPubKey)[j]);
fprintf(stderr," claimvout.%d scriptPubKey mismatch\n",claimvout);
}
} else fprintf(stderr,"i.%d %s vs %s\n",i,destaddr,refdepositaddr);
}
}

View File

@@ -356,9 +356,9 @@ static const CRPCCommand vRPCCommands[] =
/* fsm */
{ "FSM", "FSMaddress", &FSMaddress, true },
{ "FSMcreate", "FSMcreate", &FSMcreate, true },
{ "FSMlist", "FSMlist", &FSMlist, true },
{ "FSMinfo", "FSMinfo", &FSMinfo, true },
{ "FSM", "FSMcreate", &FSMcreate, true },
{ "FSM", "FSMlist", &FSMlist, true },
{ "FSM", "FSMinfo", &FSMinfo, true },
/* rewards */
{ "rewards", "rewardslist", &rewardslist, true },