From d698bb592c917a8ec36685cb3bf6ab1061982cbc Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 19 Mar 2019 01:22:59 +0800 Subject: [PATCH] try fix --- iguana/dpow/dpow_rpc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 99c015265..a298a6190 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -302,15 +302,15 @@ int32_t dpow_paxpending(struct supernet_info *myinfo,uint8_t *hex,int32_t hexsiz ppMoMheight = jint(srcinfojson,"ppMoMheight"); free_json(srcinfojson); //printf("ppMoMheight.%i CCid.%i\n", ppMoMheight, CCid); - } */ + } #if STAKED int8_t MoMoMdelay = 5; int8_t ccid_ex = 1; #else int8_t MoMoMdelay = 0; int8_t ccid_ex = 0; -#endif - if ( CCid > ccid_ex && src_or_dest == 0 && strcmp(bp->destcoin->symbol,"KMD") == 0 ) //strncmp(bp->srccoin->symbol,"TXSCL",5) == 0 && +#endif */ + if ( CCid > 1 && src_or_dest == 0 && strcmp(bp->destcoin->symbol,"KMD") == 0 ) //strncmp(bp->srccoin->symbol,"TXSCL",5) == 0 && { kmdcoin = bp->destcoin; if ( (infojson= dpow_getinfo(myinfo,kmdcoin)) != 0 ) @@ -320,7 +320,7 @@ int32_t dpow_paxpending(struct supernet_info *myinfo,uint8_t *hex,int32_t hexsiz } // 5 block delay is easily enough most of the time. In rare case KMD is reorged more than this, // the backup notary validation can be used to complete the import. - if ( (retjson= dpow_MoMoMdata(kmdcoin,bp->srccoin->symbol,kmdheight-MoMoMdelay,bp->CCid)) != 0 ) + if ( (retjson= dpow_MoMoMdata(kmdcoin,bp->srccoin->symbol,kmdheight-5,bp->CCid)) != 0 ) { /*if ( ppMoMheight != 0 && jstr(retjson,"error") != 0 ) {