From 319c6fbe54637385254b4adf96f953b325973a09 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 14 Oct 2012 21:32:04 -0700 Subject: [PATCH] Output the hash of a node we can't find when we log it. --- src/SHAMapNodes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SHAMapNodes.cpp b/src/SHAMapNodes.cpp index 859b47382e..4cc47f649d 100644 --- a/src/SHAMapNodes.cpp +++ b/src/SHAMapNodes.cpp @@ -513,9 +513,9 @@ bool SHAMapTreeNode::setChildHash(int m, const uint256 &hash) std::ostream& operator<<(std::ostream& out, const SHAMapMissingNode& mn) { if (mn.getMapType() == smtTRANSACTION) - out << "Missing/TXN(" << mn.getNodeID() << ")"; + out << "Missing/TXN(" << mn.getNodeID() << "/" << mn.getNodeHash() << ")"; else if (mn.getMapType() == smtSTATE) - out << "Missing/STA(" << mn.getNodeID() << ")"; + out << "Missing/STA(" << mn.getNodeID() << "/" << mn.getNodeHash() << ")"; else out << "Missing/" << mn.getNodeID(); return out;