mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Cleanup.
This commit is contained in:
@@ -323,17 +323,17 @@ SHAMapItem::pointer SHAMap::onlyBelow(SHAMapTreeNode* node)
|
||||
while (!node->isLeaf())
|
||||
{
|
||||
found = false;
|
||||
SHAMapTreeNode* nextNode;
|
||||
SHAMapTreeNode* nextNode = NULL;
|
||||
|
||||
for (int i = 0; i < 16; ++i)
|
||||
if (!node->isEmptyBranch(i))
|
||||
{
|
||||
if (found) return SHAMapItem::pointer(); // two leaves below
|
||||
if (nextNode)
|
||||
return SHAMapItem::pointer(); // two leaves below
|
||||
nextNode = getNodePointer(node->getChildNodeID(i), node->getChildHash(i));
|
||||
found = true;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
if (!nextNode)
|
||||
{
|
||||
std::cerr << *node << std::endl;
|
||||
assert(false);
|
||||
|
||||
Reference in New Issue
Block a user