Browse Source

Test

metaverse
jl777 7 years ago
parent
commit
2934460ce3
  1. 8
      src/komodo_bitcoind.h
  2. 4
      src/komodo_gateway.h
  3. 4
      src/rpcblockchain.cpp

8
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;

4
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 )
{

4
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)
{

Loading…
Cancel
Save