Test
This commit is contained in:
@@ -457,7 +457,17 @@ int64_t GatewaysVerify(char *refdepositaddr,uint256 oracletxid,int32_t claimvout
|
|||||||
txid = tx.GetHash();
|
txid = tx.GetHash();
|
||||||
nValue = tx.vout[i].nValue;
|
nValue = tx.vout[i].nValue;
|
||||||
break;
|
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);
|
} else fprintf(stderr,"i.%d %s vs %s\n",i,destaddr,refdepositaddr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -356,9 +356,9 @@ static const CRPCCommand vRPCCommands[] =
|
|||||||
|
|
||||||
/* fsm */
|
/* fsm */
|
||||||
{ "FSM", "FSMaddress", &FSMaddress, true },
|
{ "FSM", "FSMaddress", &FSMaddress, true },
|
||||||
{ "FSMcreate", "FSMcreate", &FSMcreate, true },
|
{ "FSM", "FSMcreate", &FSMcreate, true },
|
||||||
{ "FSMlist", "FSMlist", &FSMlist, true },
|
{ "FSM", "FSMlist", &FSMlist, true },
|
||||||
{ "FSMinfo", "FSMinfo", &FSMinfo, true },
|
{ "FSM", "FSMinfo", &FSMinfo, true },
|
||||||
|
|
||||||
/* rewards */
|
/* rewards */
|
||||||
{ "rewards", "rewardslist", &rewardslist, true },
|
{ "rewards", "rewardslist", &rewardslist, true },
|
||||||
|
|||||||
Reference in New Issue
Block a user