mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-29 01:50:43 +00:00
Fix crash bug on missing root.
This commit is contained in:
@@ -769,8 +769,10 @@ bool SHAMap::fetchRoot(uint256 const& hash, SHAMapSyncFilter* filter)
|
||||
else
|
||||
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;
|
||||
if (!filter || !filter->haveNode(SHAMapNode(), hash, nodeData))
|
||||
|
||||
Reference in New Issue
Block a user