Browse Source

FIX STKD != STAKED

blackjok3r
blackjok3r 7 years ago
parent
commit
d6f6da01ee
  1. 2
      iguana/dpow/dpow_rpc.c
  2. 2
      iguana/iguana_notary.c

2
iguana/dpow/dpow_rpc.c

@ -288,7 +288,7 @@ int32_t dpow_paxpending(struct supernet_info *myinfo,uint8_t *hex,int32_t hexsiz
n += iguana_rwbignum(1,&hex[n],sizeof(MoM),MoM.bytes);
MoMdepth = (MoMdepth & 0xffff) | ((uint32_t)CCid<<16);
n += iguana_rwnum(1,&hex[n],sizeof(MoMdepth),(uint32_t *)&MoMdepth);
if ( strncmp(bp->srccoin->symbol,"STAKED",6) == 0 && src_or_dest == 0 && strcmp(bp->destcoin->symbol,"KMD") == 0 )
if ( strncmp(bp->srccoin->symbol,"STKD",4) == 0 && src_or_dest == 0 && strcmp(bp->destcoin->symbol,"KMD") == 0 )
{
kmdcoin = bp->destcoin;
if ( (infojson= dpow_getinfo(myinfo,kmdcoin)) != 0 )

2
iguana/iguana_notary.c

@ -69,7 +69,7 @@ void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t he
{
if ( dp->DESTHEIGHT < dp->prevDESTHEIGHT+DPOW_CHECKPOINTFREQ )
{
suppress = strncmp("STAKED",dp->symbol,6) != 0;
suppress = strncmp("STKD",dp->symbol,4) != 0;
//fprintf(stderr,"suppress %s -> KMD\n",dp->symbol);
}
}

Loading…
Cancel
Save