From dddbef8848f752026968b716eeaee2381c6e0961 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sat, 3 Nov 2018 11:06:48 +0800 Subject: [PATCH] coin name! --- iguana/dpow/dpow_rpc.c | 2 +- iguana/iguana_notary.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 9c7b5818a..59d63eebf 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -289,7 +289,7 @@ int32_t dpow_paxpending(struct supernet_info *myinfo,uint8_t *hex,int32_t hexsiz MoMdepth = (MoMdepth & 0xffff) | ((uint32_t)CCid<<16); n += iguana_rwnum(1,&hex[n],sizeof(MoMdepth),(uint32_t *)&MoMdepth); //( ) - if ( ( is_STAKED() != 0 ) && src_or_dest == 0 && strcmp(bp->destcoin->symbol,"KMD") == 0 ) + if ( ( is_STAKED(bp->srccoin->symbol) ) && src_or_dest == 0 && strcmp(bp->destcoin->symbol,"KMD") == 0 ) { kmdcoin = bp->destcoin; if ( (infojson= dpow_getinfo(myinfo,kmdcoin)) != 0 ) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 934f3b038..9dff97d12 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -80,7 +80,7 @@ void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t he if ( strcmp(dp->dest,"KMD") == 0 ) { int supressfreq = DPOW_CHECKPOINTFREQ; - if ( is_STAKED() != 0 ) { + if ( is_STAKED(dp->symbol) != 0 ) { supressfreq = 3; } if ( dp->DESTHEIGHT < dp->prevDESTHEIGHT+supressfreq )