Fix two bugs that could have been what Jed reported.

This commit is contained in:
JoelKatz
2012-06-29 22:41:14 -07:00
parent 6bbf7f58f0
commit b95dc249c0
2 changed files with 12 additions and 2 deletions

View File

@@ -234,7 +234,11 @@ bool SHAMap::addKnownNode(const SHAMapNode& node, const std::vector<unsigned cha
return false;
if (filter)
filter->gotNode(node, hash, rawNode, newNode->isLeaf());
{
Serializer s;
newNode->addRaw(s, STN_ARF_PREFIXED);
filter->gotNode(node, hash, s.peekData(), newNode->isLeaf());
}
mTNByID[*newNode] = newNode;
if (!newNode->isLeaf())