Test
This commit is contained in:
@@ -497,7 +497,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
fprintf(stderr,"unexpected null komodostateptr.[%s]\n",ASSETCHAINS_SYMBOL);
|
fprintf(stderr,"unexpected null komodostateptr.[%s]\n",ASSETCHAINS_SYMBOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//fprintf(stderr,"%s connect.%d\n",ASSETCHAINS_SYMBOL,pindex->nHeight);
|
fprintf(stderr,"%s connect.%d\n",ASSETCHAINS_SYMBOL,pindex->nHeight);
|
||||||
numnotaries = komodo_notaries(pubkeys,pindex->nHeight);
|
numnotaries = komodo_notaries(pubkeys,pindex->nHeight);
|
||||||
calc_rmd160_sha256(rmd160,pubkeys[0],33);
|
calc_rmd160_sha256(rmd160,pubkeys[0],33);
|
||||||
if ( pindex->nHeight > hwmheight )
|
if ( pindex->nHeight > hwmheight )
|
||||||
|
|||||||
@@ -553,6 +553,7 @@ uint32_t komodo_txtime(uint256 hash)
|
|||||||
void komodo_disconnect(CBlockIndex *pindex,CBlock& block)
|
void komodo_disconnect(CBlockIndex *pindex,CBlock& block)
|
||||||
{
|
{
|
||||||
char symbol[16],dest[16]; struct komodo_state *sp;
|
char symbol[16],dest[16]; struct komodo_state *sp;
|
||||||
|
fprintf(stderr,"disconnect ht.%d\n",pindex->nHeight);
|
||||||
komodo_init(pindex->nHeight);
|
komodo_init(pindex->nHeight);
|
||||||
if ( (sp= komodo_stateptr(symbol,dest)) != 0 )
|
if ( (sp= komodo_stateptr(symbol,dest)) != 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -644,8 +644,8 @@ void static BitcoinMiner()
|
|||||||
while ( (ASSETCHAIN_INIT == 0 || KOMODO_INITDONE == 0) ) //chainActive.Tip()->nHeight != 235300 &&
|
while ( (ASSETCHAIN_INIT == 0 || KOMODO_INITDONE == 0) ) //chainActive.Tip()->nHeight != 235300 &&
|
||||||
{
|
{
|
||||||
sleep(1);
|
sleep(1);
|
||||||
//if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 )
|
if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 )
|
||||||
// break;
|
break;
|
||||||
}
|
}
|
||||||
komodo_chosennotary(¬aryid,chainActive.Tip()->nHeight,NOTARY_PUBKEY33);
|
komodo_chosennotary(¬aryid,chainActive.Tip()->nHeight,NOTARY_PUBKEY33);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user