mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
refactor: add some const
This commit is contained in:
parent
4804aad2c9
commit
358ae3283d
@ -135,7 +135,7 @@ PeerMsgRet CChainLocksHandler::ProcessNewChainLock(const NodeId from, const llmq
|
||||
return {};
|
||||
}
|
||||
|
||||
CBlockIndex* pindex = WITH_LOCK(cs_main, return m_chainstate.m_blockman.LookupBlockIndex(clsig.getBlockHash()));
|
||||
const CBlockIndex* pindex = WITH_LOCK(cs_main, return m_chainstate.m_blockman.LookupBlockIndex(clsig.getBlockHash()));
|
||||
|
||||
{
|
||||
LOCK(cs);
|
||||
@ -428,7 +428,7 @@ CChainLocksHandler::BlockTxs::mapped_type CChainLocksHandler::GetBlockTxs(const
|
||||
}
|
||||
|
||||
ret = std::make_shared<std::unordered_set<uint256, StaticSaltedHasher>>();
|
||||
for (auto& tx : block.vtx) {
|
||||
for (const auto& tx : block.vtx) {
|
||||
if (tx->IsCoinBase() || tx->vin.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user