Test
This commit is contained in:
@@ -476,7 +476,7 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t
|
|||||||
return(retval);
|
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];
|
uint256 hash; char params[128],*hexstr,*jsonstr; cJSON *result; int32_t i; uint8_t revbuf[32];
|
||||||
memset(&hash,0,sizeof(hash));
|
memset(&hash,0,sizeof(hash));
|
||||||
@@ -502,12 +502,12 @@ uint256 komodo_getblockhash(int32_t height)
|
|||||||
return(hash);
|
return(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 _komodo_getblockhash(int32_t height);
|
uint256 _komodo_getblockhash(int32_t height);*/
|
||||||
|
|
||||||
uint64_t komodo_seed(int32_t height)
|
uint64_t komodo_seed(int32_t height)
|
||||||
{
|
{
|
||||||
uint64_t seed = 0;
|
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;
|
uint256 hash,zero; CBlockIndex *pindex;
|
||||||
memset(&hash,0,sizeof(hash));
|
memset(&hash,0,sizeof(hash));
|
||||||
@@ -524,7 +524,7 @@ uint64_t komodo_seed(int32_t height)
|
|||||||
printf(" seed.%d\n",height);
|
printf(" seed.%d\n",height);
|
||||||
seed = arith_uint256(hash.GetHex()).GetLow64();
|
seed = arith_uint256(hash.GetHex()).GetLow64();
|
||||||
}
|
}
|
||||||
else
|
else*/
|
||||||
{
|
{
|
||||||
seed = (height << 13) ^ (height << 2);
|
seed = (height << 13) ^ (height << 2);
|
||||||
seed <<= 21;
|
seed <<= 21;
|
||||||
|
|||||||
@@ -1365,12 +1365,12 @@ void komodo_passport_iteration()
|
|||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
{
|
{
|
||||||
refid = 33;
|
refid = 33;
|
||||||
limit = 1000000;
|
limit = 10000000;
|
||||||
jumblr_iteration();
|
jumblr_iteration();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
limit = 10000;
|
limit = 10000000;
|
||||||
refid = komodo_baseid(ASSETCHAINS_SYMBOL)+1; // illegal base -> baseid.-1 -> 0
|
refid = komodo_baseid(ASSETCHAINS_SYMBOL)+1; // illegal base -> baseid.-1 -> 0
|
||||||
if ( refid == 0 )
|
if ( refid == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ UniValue getblockhash(const UniValue& params, bool fHelp)
|
|||||||
return pblockindex->GetBlockHash().GetHex();
|
return pblockindex->GetBlockHash().GetHex();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 _komodo_getblockhash(int32_t nHeight)
|
/*uint256 _komodo_getblockhash(int32_t nHeight)
|
||||||
{
|
{
|
||||||
uint256 hash;
|
uint256 hash;
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
@@ -323,7 +323,7 @@ uint256 _komodo_getblockhash(int32_t nHeight)
|
|||||||
printf(" blockhash.%d\n",nHeight);
|
printf(" blockhash.%d\n",nHeight);
|
||||||
} else memset(&hash,0,sizeof(hash));
|
} else memset(&hash,0,sizeof(hash));
|
||||||
return(hash);
|
return(hash);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
UniValue getblockheader(const UniValue& params, bool fHelp)
|
UniValue getblockheader(const UniValue& params, bool fHelp)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user