aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-01-13 15:49:31 -0500
committerMatt Corallo <git@bluematt.me>2017-01-13 16:28:15 -0500
commit02ee4eb2637db9077aefa1f5e59864218e016b93 (patch)
tree3196e8d517d7b5fb6213494dcb10ac7c7e278548
parent73666ad05932429c860efe74eb388d212c152fc4 (diff)
Make most_recent_compact_block a pointer to a const
-rw-r--r--src/net_processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 015921ebe9..8bcb590675 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -754,11 +754,11 @@ void PeerLogicValidation::SyncTransaction(const CTransaction& tx, const CBlockIn
static CCriticalSection cs_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;
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);
LOCK(cs_main);