diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 7f2d202a1..db1ea8319 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -376,6 +376,8 @@ uint64_t komodo_seed(int32_t height) { uint256 hash; uint64_t seed = 0; CBlockIndex *pindex; memset(&hash,0,sizeof(hash)); + if ( height > 10 ) + height -= 10; if ( ASSETCHAINS_SYMBOL[0] == 0 ) { if ( (pindex= chainActive[height]) != 0 ) diff --git a/src/komodo_pax.h b/src/komodo_pax.h index 77f7c5f1f..e7db138b1 100644 --- a/src/komodo_pax.h +++ b/src/komodo_pax.h @@ -348,6 +348,8 @@ uint64_t komodo_paxcalc(uint32_t *pvals,int32_t baseid,int32_t relid,uint64_t ba uint64_t _komodo_paxprice(int32_t height,char *base,char *rel,uint64_t basevolume) { int32_t baseid=-1,relid=-1,i; uint32_t *ptr; + if ( height > 10 ) + height -= 10; if ( (baseid= komodo_baseid(base)) >= 0 && (relid= komodo_baseid(rel)) >= 0 ) { for (i=NUM_PRICES-1; i>=0; i--)