Browse Source

laziest fix

blackjok3r
blackjok3r 6 years ago
parent
commit
2507f8c253
  1. 5
      iguana/dpow/dpow_fsm.c

5
iguana/dpow/dpow_fsm.c

@ -626,8 +626,11 @@ void dpow_statemachinestart(void *ptr)
break;
if ( bits256_cmp(bp->srctxid,zero) == 0 )
break;
// wait for approx one block before checking, gives some time to confirm, before rebroadcast.
sleep(60);
// get the confirms for desttxid
memset(rettx,0,sizeof(rettx)); // zero out rettx!
if ( destnotarized == 0 )
{
if ( (dest_confs= dpow_txconfirms(myinfo, bp->destcoin, bp->desttxid, rettx)) != -1 )
@ -692,8 +695,6 @@ void dpow_statemachinestart(void *ptr)
fprintf(stderr, "rebroadcast failed!\n");
}
// wait for approx one block before checking again.
sleep(30);
if ( destnotarized != 0 && srcnotarized != 0 )
break;
}

Loading…
Cancel
Save