mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-12 08:08:25 +00:00
Make most_recent_compact_block a pointer to a const
This commit is contained in:
parent
73666ad059
commit
02ee4eb263
@ -754,11 +754,11 @@ void PeerLogicValidation::SyncTransaction(const CTransaction& tx, const CBlockIn
|
|||||||
|
|
||||||
static CCriticalSection cs_most_recent_block;
|
static CCriticalSection cs_most_recent_block;
|
||||||
static std::shared_ptr<const CBlock> most_recent_block;
|
static std::shared_ptr<const CBlock> most_recent_block;
|
||||||
static std::shared_ptr<CBlockHeaderAndShortTxIDs> most_recent_compact_block;
|
static std::shared_ptr<const CBlockHeaderAndShortTxIDs> most_recent_compact_block;
|
||||||
static uint256 most_recent_block_hash;
|
static uint256 most_recent_block_hash;
|
||||||
|
|
||||||
void PeerLogicValidation::NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& pblock) {
|
void PeerLogicValidation::NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& pblock) {
|
||||||
std::shared_ptr<CBlockHeaderAndShortTxIDs> pcmpctblock = std::make_shared<CBlockHeaderAndShortTxIDs> (*pblock, true);
|
std::shared_ptr<const CBlockHeaderAndShortTxIDs> pcmpctblock = std::make_shared<const CBlockHeaderAndShortTxIDs> (*pblock, true);
|
||||||
CNetMsgMaker msgMaker(PROTOCOL_VERSION);
|
CNetMsgMaker msgMaker(PROTOCOL_VERSION);
|
||||||
|
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
Loading…
Reference in New Issue
Block a user