Fix compilation against the latest ndn-cxx library
Change-Id: Ib9ae9c1601359a81a7f131ab63803f11adba7f38
diff --git a/core/merkle-tree.cpp b/core/merkle-tree.cpp
index fa9dd2c..2219d2f 100644
--- a/core/merkle-tree.cpp
+++ b/core/merkle-tree.cpp
@@ -178,8 +178,7 @@
m_pendingTrees[newRoot->getPeakIndex().level] = newRoot;
m_rootSubTree = newRoot;
- bool result = newRoot->updateLeaf(idx.seqNo + idx.range, oldRoot->getRoot()->getHash());
- BOOST_ASSERT(result);
+ newRoot->updateLeaf(idx.seqNo + idx.range, oldRoot->getRoot()->getHash());
// create a sibling
getNewSibling(idx);
@@ -210,8 +209,7 @@
// std::cerr << "seqNo: " << seqNo << std::endl;
// std::cerr << "parent: " << parent->getRoot()->getIndex().level << ", " <<
// parent->getRoot()->getIndex().seqNo << std::endl;
- bool result = parent->updateLeaf(seqNo, hash);
- BOOST_ASSERT(result);
+ parent->updateLeaf(seqNo, hash);
});
m_pendingTrees[newSibling->getPeakIndex().level] = newSibling;