From 5ae2d739c1007eefd365e442f6436bfec0cb1bcd Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Wed, 6 Mar 2019 16:51:16 +0800 Subject: [PATCH] try --- iguana/dpow/dpow_fsm.c | 4 ++-- iguana/dpow/dpow_rpc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index d199667cd..c4e424af0 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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 ) { diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 011b18738..456ac3fc8 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/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;