style-only: Remove redundant scope in *Chainstate

This commit is contained in:
Kittywhiskers Van Gogh 2024-10-03 13:17:54 +00:00
parent 872158d248
commit 04dbaa8bd8
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -57,7 +57,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull(); return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull();
}; };
{
LOCK(cs_main); LOCK(cs_main);
int64_t nEvoDbCache{64 * 1024 * 1024}; // TODO int64_t nEvoDbCache{64 * 1024 * 1024}; // TODO
@ -203,7 +202,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
if (!mnhf_manager->ForceSignalDBUpdate()) { if (!mnhf_manager->ForceSignalDBUpdate()) {
return ChainstateLoadingError::ERROR_UPGRADING_SIGNALS_DB; return ChainstateLoadingError::ERROR_UPGRADING_SIGNALS_DB;
} }
}
return std::nullopt; return std::nullopt;
} }
@ -285,7 +283,6 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull(); return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull();
}; };
{
LOCK(cs_main); LOCK(cs_main);
for (CChainState* chainstate : chainman.GetAll()) { for (CChainState* chainstate : chainman.GetAll()) {
@ -329,7 +326,6 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
} }
} }
} }
}
return std::nullopt; return std::nullopt;
} }