mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Expose signed block information over RPC when active
This commit is contained in:
parent
0d7e0f9898
commit
5877da8ed9
3 changed files with 48 additions and 15 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue