From 2934460ce3fbd90b6e8a2bb63c47c55efdc738e5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 9 Oct 2017 17:41:16 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 8 ++++---- src/komodo_gateway.h | 4 ++-- src/rpcblockchain.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 7b609ec8f..cc8ebe3d3 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -476,7 +476,7 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t return(retval); } -uint256 komodo_getblockhash(int32_t height) +/*uint256 komodo_getblockhash(int32_t height) { uint256 hash; char params[128],*hexstr,*jsonstr; cJSON *result; int32_t i; uint8_t revbuf[32]; memset(&hash,0,sizeof(hash)); @@ -502,12 +502,12 @@ uint256 komodo_getblockhash(int32_t height) return(hash); } -uint256 _komodo_getblockhash(int32_t height); +uint256 _komodo_getblockhash(int32_t height);*/ uint64_t komodo_seed(int32_t height) { uint64_t seed = 0; - if ( 0 ) // problem during init time, seeds are needed for loading blockindex, so null seeds... + /*if ( 0 ) // problem during init time, seeds are needed for loading blockindex, so null seeds... { uint256 hash,zero; CBlockIndex *pindex; memset(&hash,0,sizeof(hash)); @@ -524,7 +524,7 @@ uint64_t komodo_seed(int32_t height) printf(" seed.%d\n",height); seed = arith_uint256(hash.GetHex()).GetLow64(); } - else + else*/ { seed = (height << 13) ^ (height << 2); seed <<= 21; diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 4c6bdcb23..5e13283e1 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1365,12 +1365,12 @@ void komodo_passport_iteration() if ( ASSETCHAINS_SYMBOL[0] == 0 ) { refid = 33; - limit = 1000000; + limit = 10000000; jumblr_iteration(); } else { - limit = 10000; + limit = 10000000; refid = komodo_baseid(ASSETCHAINS_SYMBOL)+1; // illegal base -> baseid.-1 -> 0 if ( refid == 0 ) { diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 448b73580..8088da58f 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -309,7 +309,7 @@ UniValue getblockhash(const UniValue& params, bool fHelp) return pblockindex->GetBlockHash().GetHex(); } -uint256 _komodo_getblockhash(int32_t nHeight) +/*uint256 _komodo_getblockhash(int32_t nHeight) { uint256 hash; LOCK(cs_main); @@ -323,7 +323,7 @@ uint256 _komodo_getblockhash(int32_t nHeight) printf(" blockhash.%d\n",nHeight); } else memset(&hash,0,sizeof(hash)); return(hash); -} +}*/ UniValue getblockheader(const UniValue& params, bool fHelp) {