From cd897e2b88e4e8c0ef95f4d30b6dde619ec09f62 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 22:01:02 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 505569cb4..9cc063155 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -767,15 +767,10 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height) void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height) { - int32_t num,i; //CBlock block; + int32_t num,i; memset(pubkey33,0,33); if ( pindex != 0 ) { - /*if ( komodo_blockload(block,pindex) == 0 ) - { - komodo_block2pubkey33(pindex->pubkey33,&block); - return; - }*/ if ( pindex->didinit != 0 ) { memcpy(pubkey33,pindex->pubkey33,33); @@ -890,7 +885,7 @@ int32_t komodo_minerids(uint8_t *minerids,int32_t height,int32_t width) // depre int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t height,uint8_t pubkey33[33],uint32_t timestamp) { int32_t i,notaryid=0,minerid,limit,nid; - if ( height >= 700000 ) + /*if ( height >= 700000 ) { if ( mids[0] >= 0 ) { @@ -907,7 +902,7 @@ int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t heigh return(1); } else return(0); } - else + else*/ { //if ( height >= 225000 ) komodo_chosennotary(¬aryid,height,pubkey33,timestamp); @@ -924,7 +919,7 @@ int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t heigh if ( nid == notaryid ) { //if ( (0) && notaryid > 0 ) - fprintf(stderr,"ht.%d repeat notaryid.%d in mids[%d] nid.%d notaryid.%d\n",height,mids[0],i,nid,notaryid); + fprintf(stderr,"ht.%d repeat mids0.%d in mids[%d] nid.%d notaryid.%d\n",height,mids[0],i,nid,notaryid); if ( height > 225000 ) return(-1); }