aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-04-09 10:57:16 -0700
committerGavin Andresen <[email protected]>2013-04-09 10:57:16 -0700
commitf158e363a4f7fed90d94ab967815164b5f854bed (patch)
tree1ae04bdb8de0286beb2b761ab3d910b08920a984 /src/protocol.cpp
parentMerge pull request #2491 from Diapolo/assets-attribution (diff)
parentAlways print full hashes (tx, block, inv) (diff)
downloaddiscoin-f158e363a4f7fed90d94ab967815164b5f854bed.tar.xz
discoin-f158e363a4f7fed90d94ab967815164b5f854bed.zip
Merge pull request #2478 from sipa/fullhash
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 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