mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
At level 64, only leaves are allowed
This commit is contained in:
committed by
Vinnie Falco
parent
52f45669d1
commit
0075f36bbc
@@ -472,6 +472,13 @@ SHAMapAddNode SHAMap::addKnownNode (const SHAMapNode& node, Blob const& rawNode,
|
||||
|
||||
canonicalize (iNode->getChildHash (branch), newNode);
|
||||
|
||||
if (!iNode->isInBounds ())
|
||||
{
|
||||
// Map is provably invalid
|
||||
mState = smsInvalid;
|
||||
return SHAMapAddNode::useful ();
|
||||
}
|
||||
|
||||
if (mTNByID.canonicalize(node, &newNode) && filter)
|
||||
{
|
||||
Serializer s;
|
||||
|
||||
Reference in New Issue
Block a user