diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 26d694d4a..e3c2618f8 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -1004,7 +1004,10 @@ uint32_t dpow_statemachineiterate(struct supernet_info *myinfo,struct dpow_info break; } if ( bits256_nonz(bp->signedtxid) != 0 ) + { bp->state = 0xffffffff; + dp->destupdated = 0; // prevent another state machine till next BTC block + } return(bp->state); } @@ -1015,7 +1018,6 @@ void dpow_statemachinestart(void *ptr) memset(&zero,0,sizeof(zero)); myinfo = ptrs[0]; dp = ptrs[1]; - dp->destupdated = 0; // prevent another state machine till next BTC block memcpy(&checkpoint,&ptrs[2],sizeof(checkpoint)); printf("statemachinestart %s->%s %s ht.%d\n",dp->symbol,dp->dest,bits256_str(str,checkpoint.blockhash.hash),checkpoint.blockhash.height); src = iguana_coinfind(dp->symbol);