From 1c06aa98c63fff02679d446588fad06ae8cd706f Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 7 Apr 2013 03:40:33 +0200 Subject: Always print full hashes (tx, block, inv) --- src/protocol.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/protocol.cpp') diff --git a/src/protocol.cpp b/src/protocol.cpp index 7b42f5270..88bbe49af 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -142,12 +142,7 @@ const char* CInv::GetCommand() const std::string CInv::ToString() const { - if (type == MSG_BLOCK) - return strprintf("%s %s", GetCommand(), BlockHashStr(hash).c_str()); - if (type == MSG_TX) - return strprintf("%s %s", GetCommand(), hash.ToString().substr(0,10).c_str()); - - return strprintf("%s %s", GetCommand(), hash.ToString().substr(0,20).c_str()); + return strprintf("%s %s", GetCommand(), hash.ToString().c_str()); } void CInv::print() const -- cgit v1.2.3