Browse Source

Test

metaverse
jl777 6 years ago
parent
commit
3242301d14
  1. 12
      src/cc/gateways.cpp
  2. 6
      src/rpcserver.cpp

12
src/cc/gateways.cpp

@ -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);
}
}

6
src/rpcserver.cpp

@ -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 },

Loading…
Cancel
Save