From 6def1dd580fe434231f3b03ef354c2899e49f698 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 20:08:52 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 4 ++-- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 24c3358c2..e19a1126c 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -770,11 +770,11 @@ void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height) memset(pubkey33,0,33); if ( pindex != 0 ) { - if ( komodo_blockload(block,pindex) == 0 ) + /*if ( komodo_blockload(block,pindex) == 0 ) { komodo_block2pubkey33(pindex->pubkey33,block); return; - } + }*/ if ( pindex->didinit != 0 ) { memcpy(pubkey33,pindex->pubkey33,33); diff --git a/src/main.cpp b/src/main.cpp index ea0f8de08..6bfe65a28 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3509,7 +3509,7 @@ bool CheckBlockHeader(int32_t height,CBlockIndex *pindex, const CBlockHeader& bl return state.DoS(100, error("CheckBlockHeader(): Equihash solution invalid"),REJECT_INVALID, "invalid-solution"); // Check proof of work matches claimed amount - //komodo_index2pubkey33(pubkey33,pindex,height); + komodo_index2pubkey33(pubkey33,pindex,height); if ( fCheckPOW && !CheckProofOfWork(height,pubkey33,blockhdr.GetHash(), blockhdr.nBits, Params().GetConsensus()) ) return state.DoS(50, error("CheckBlockHeader(): proof of work failed"),REJECT_INVALID, "high-hash"); return true;