jl777 8 years ago
parent
commit
650f4443ed
  1. 14
      iguana/iguana_notary.c

14
iguana/iguana_notary.c

@ -985,18 +985,18 @@ void dpow_statemachinestart(void *ptr)
{ {
//printf("dp->ht.%d ht.%d DEST.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,deststate,bits256_str(str,srchash.hash)); //printf("dp->ht.%d ht.%d DEST.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,deststate,bits256_str(str,srchash.hash));
destbp->state = dpow_statemachineiterate(myinfo,dp,dest,destbp,myind); destbp->state = dpow_statemachineiterate(myinfo,dp,dest,destbp,myind);
} if ( destbp->state == 0xffffffff )
if ( destbp->state == 0xffffffff ) {
{ srcbp->btctxid = destbp->signedtxid;
srcbp->btctxid = destbp->signedtxid; dp->destupdated = 0;
dp->destupdated = 0; printf("SET BTCTXID.(%s)\n",bits256_str(str,srcbp->btctxid));
printf("SET BTCTXID.(%s)\n",bits256_str(str,srcbp->btctxid)); }
} }
if ( destbp->state == 0xffffffff ) if ( destbp->state == 0xffffffff )
{ {
if ( srcbp->state != 0xffffffff ) if ( srcbp->state != 0xffffffff )
{ {
printf("dp->ht.%d ht.%d SRC.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,srcbp->state,bits256_str(str,srcbp->btctxid)); //printf("dp->ht.%d ht.%d SRC.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,srcbp->state,bits256_str(str,srcbp->btctxid));
srcbp->state = dpow_statemachineiterate(myinfo,dp,src,srcbp,myind); srcbp->state = dpow_statemachineiterate(myinfo,dp,src,srcbp,myind);
} }
} }

Loading…
Cancel
Save