mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +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;
|
WriteLog (lsTRACE, SHAMap) << "Fetch root SHAMap node " << hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
root = fetchNodeExternalNT (SHAMapNode (), hash);
|
Ledger::pointer newRoot = fetchNodeExternalNT(SHAMapNode(), hash);
|
||||||
|
if (newRoot)
|
||||||
if (!root)
|
root = newRoot;
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Blob nodeData;
|
Blob nodeData;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user