At level 64, only leaves are allowed

This commit is contained in:
David Schwartz
2014-05-09 12:05:40 -07:00
committed by Vinnie Falco
parent 52f45669d1
commit 0075f36bbc
4 changed files with 27 additions and 2 deletions

View File

@@ -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;