mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
style-only: Remove redundant scope in *Chainstate
This commit is contained in:
parent
872158d248
commit
04dbaa8bd8
@ -57,7 +57,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
|
||||
return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull();
|
||||
};
|
||||
|
||||
{
|
||||
LOCK(cs_main);
|
||||
|
||||
int64_t nEvoDbCache{64 * 1024 * 1024}; // TODO
|
||||
@ -203,7 +202,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
|
||||
if (!mnhf_manager->ForceSignalDBUpdate()) {
|
||||
return ChainstateLoadingError::ERROR_UPGRADING_SIGNALS_DB;
|
||||
}
|
||||
}
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
@ -285,7 +283,6 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
|
||||
return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull();
|
||||
};
|
||||
|
||||
{
|
||||
LOCK(cs_main);
|
||||
|
||||
for (CChainState* chainstate : chainman.GetAll()) {
|
||||
@ -329,7 +326,6 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user