Browse Source

try

blackjok3r
blackjok3r 6 years ago
parent
commit
5ae2d739c1
  1. 4
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/dpow/dpow_rpc.c

4
iguana/dpow/dpow_fsm.c

@ -617,7 +617,7 @@ void dpow_statemachinestart(void *ptr)
// We need to wait for notarized confirm here. If the notarization is reorged for any reason we need to rebroadcast it,
// because the mempool is stupid after the sapling update, or Alright might be playing silly games.
int8_t dest_confs = 0, src_confs = 0, destnotarized = 0, srcnotarized = 0;
char desttx[32768],srctx[32768]; char *retstr=0;
char desttx[32768],srctx[32768],rettx[32768]; char *retstr=0;
while ( 1 )
{
// If the round was sucessful and both notarizations were created successfully we will make sure they are in the chain.
@ -627,7 +627,7 @@ void dpow_statemachinestart(void *ptr)
break;
// get the confirms for desttxid
if ( destnotarized == 0 && (dest_confs= dpow_txconfirms(myinfo, bp->destcoin, bp->desttxid, &desttx)) != -1 )
if ( destnotarized == 0 && (dest_confs= dpow_txconfirms(myinfo, bp->destcoin, bp->desttxid, rettx)) != -1 )
{
if ( dest_confs > 2 )
{

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 )
{
rawtx= jstr(txobj, "hex");
*rawtx= jstr(txobj, "hex");
if ( (confirms= juint(txobj, "confirmations")) != 0 )
{
ret = confirms;

Loading…
Cancel
Save