Browse Source

fix

blackjok3r
blackjok3r 6 years ago
parent
commit
a70c16cbef
  1. 1
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/dpow/dpow_rpc.c

1
iguana/dpow/dpow_fsm.c

@ -629,6 +629,7 @@ void dpow_statemachinestart(void *ptr)
// get the confirms for desttxid
if ( destnotarized == 0 && (dest_confs= dpow_txconfirms(myinfo, bp->destcoin, bp->desttxid, rettx)) != -1 )
{
fprintf(stderr, "rettx.%s\n", rettx);
if ( desttx[0] == 0 && rettx[0] != 0 )
{
strcpy(rettx,desttx);

2
iguana/dpow/dpow_rpc.c

@ -546,7 +546,7 @@ int32_t dpow_txconfirms(struct supernet_info *myinfo,struct iguana_info *coin,bi
cJSON *txobj; int32_t confirms = 0, ret = 0;
if ( (txobj= dpow_gettransaction(myinfo, coin, txid)) != 0 )
{
memcpy(rawtx, jstr(txobj, "hex"), sizeof(jstr(txobj, "hex")+1);
memcpy(rawtx, jstr(txobj, "hex"), strlen(jstr(txobj, "hex"))+1);
if ( (confirms= juint(txobj, "confirmations")) != 0 )
{
ret = confirms;

Loading…
Cancel
Save