aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-07 03:40:33 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-04-07 03:43:55 +0200
commit1c06aa98c63fff02679d446588fad06ae8cd706f (patch)
tree505b78cebe55e09d00d54521c434cc0af2397165 /src/protocol.cpp
parentab806a69a23c47e75821aa8a1fcd8d7f9e32999e (diff)
Always print full hashes (tx, block, inv)
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 7b42f5270b..88bbe49afd 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