Browse Source

test

acspeed
jl777 8 years ago
parent
commit
262bd9473c
  1. 6
      iguana/dpow/dpow_fsm.c
  2. 4
      iguana/dpow/dpow_rpc.c

6
iguana/dpow/dpow_fsm.c

@ -327,7 +327,7 @@ void dpow_statemachinestart(void *ptr)
dp->ratifying -= bp->isratify;
return;
}
printf(" myind.%d myaddr.(%s %s)\n",myind,srcaddr,destaddr);
//printf(" myind.%d myaddr.(%s %s)\n",myind,srcaddr,destaddr);
if ( myind == 0 && bits256_nonz(destprevtxid0) != 0 && bits256_nonz(srcprevtxid0) != 0 && destprevvout0 >= 0 && srcprevvout0 >= 0 )
{
ep->dest.prev_hash = destprevtxid0;
@ -375,7 +375,7 @@ void dpow_statemachinestart(void *ptr)
{
if ( dp->checkpoint.blockhash.height > checkpoint.blockhash.height )
{
printf("abort ht.%d due to new checkpoint.%d\n",checkpoint.blockhash.height,dp->checkpoint.blockhash.height);
printf("abort %s ht.%d due to new checkpoint.%d\n",dp->symbol,checkpoint.blockhash.height,dp->checkpoint.blockhash.height);
dp->ratifying -= bp->isratify;
return;
}
@ -396,7 +396,7 @@ void dpow_statemachinestart(void *ptr)
{
if ( bp->isratify == 0 )
{
printf("abort ht.%d due to new checkpoint.%d\n",checkpoint.blockhash.height,dp->checkpoint.blockhash.height);
printf("abort %s ht.%d due to new checkpoint.%d\n",dp->symbol,checkpoint.blockhash.height,dp->checkpoint.blockhash.height);
break;
}
}

4
iguana/dpow/dpow_rpc.c

@ -449,10 +449,10 @@ int32_t dpow_haveutxo(struct supernet_info *myinfo,struct iguana_info *coin,bits
}
if ( haveutxo == 0 )
printf("no utxo: need to fund address.(%s) or wait for splitfund to confirm\n",coinaddr);
} else printf("null utxo array size\n");
} //else printf("null utxo array size\n");
free_json(unspents);
} else printf("null return from dpow_listunspent\n");
if ( haveutxo > 0 )
if ( 0 && haveutxo > 0 )
printf("%s haveutxo.%d\n",coin->symbol,haveutxo);
return(haveutxo);
}

Loading…
Cancel
Save