mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Don't crash on missing root node.
This commit is contained in:
@@ -884,9 +884,10 @@ bool SHAMap::fetchRoot (uint256 const& hash, SHAMapSyncFilter* filter)
|
||||
WriteLog (lsTRACE, SHAMap) << "Fetch root SHAMap node " << hash;
|
||||
}
|
||||
|
||||
root = fetchNodeExternalNT (SHAMapNode (), hash);
|
||||
|
||||
if (!root)
|
||||
Ledger::pointer newRoot = fetchNodeExternalNT(SHAMapNode(), hash);
|
||||
if (newRoot)
|
||||
root = newRoot;
|
||||
else
|
||||
{
|
||||
Blob nodeData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user