From b5bce2acc6c8461bc3909726cb43e35488e4a507 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sat, 2 Mar 2019 16:40:36 +0800 Subject: [PATCH] Change to simply use KMDheight-5 instead of notarized height. --- iguana/dpow/dpow_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index abe81b975..d243edb13 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -307,10 +307,10 @@ int32_t dpow_paxpending(struct supernet_info *myinfo,uint8_t *hex,int32_t hexsiz kmdcoin = bp->destcoin; if ( (infojson= dpow_getinfo(myinfo,kmdcoin)) != 0 ) { - kmdheight = jint(infojson,"notarized"); + kmdheight = jint(infojson,"blocks"); free_json(infojson); } - if ( (retjson= dpow_MoMoMdata(kmdcoin,bp->srccoin->symbol,kmdheight,bp->CCid)) != 0 ) + if ( (retjson= dpow_MoMoMdata(kmdcoin,bp->srccoin->symbol,kmdheight-5,bp->CCid)) != 0 ) { if ( jstr(retjson,"error") != 0 ) {