Expose signed block information over RPC when active

This commit is contained in:
Gregory Sanders 2018-12-11 12:06:04 -05:00
parent 0d7e0f9898
commit 5877da8ed9
3 changed files with 48 additions and 15 deletions

View file

@ -18,6 +18,9 @@
#include <boost/thread.hpp>
// ELEMENTS
#include <block_proof.h> // CheckProof
static const char DB_COIN = 'C';
static const char DB_COINS = 'c';
static const char DB_BLOCK_FILES = 'f';
@ -279,7 +282,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts(const Consensus::Params& consensusParams,
const uint256 block_hash = pindexNew->GetBlockHash();
if (!CheckProof(pindexNew->GetBlockHeader(), consensusParams) &&
block_hash != consensusParams.hashGenesisBlock) {
return error("%s: CheckProofOfWork: %s, %s", __func__, block_hash.ToString(), pindexNew->ToString());
return error("%s: CheckProof: %s, %s", __func__, block_hash.ToString(), pindexNew->ToString());
}
pcursor->Next();
} else {