From 4307bd89d65ca16af8893dd422ae509209094039 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 24 Nov 2016 07:23:52 -0300 Subject: [PATCH] test --- src/komodo_bitcoind.h | 2 ++ src/komodo_pax.h | 2 ++ 2 files changed, 4 insertions(+) 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--)