mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
node/chainstate: Remove do/while loop
This commit is contained in:
parent
2ea1bbc7aa
commit
53231ca29d
@ -58,7 +58,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
|
||||
return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull();
|
||||
};
|
||||
|
||||
do {
|
||||
try {
|
||||
LOCK(cs_main);
|
||||
|
||||
@ -288,6 +287,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
|
||||
LogPrintf("%s\n", e.what());
|
||||
return ChainstateLoadingError::ERROR_GENERIC_BLOCKDB_OPEN_FAILED;
|
||||
}
|
||||
} while(false);
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user