diff options
| author | Pieter Wuille <[email protected]> | 2013-04-07 03:40:33 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-04-07 03:43:55 +0200 |
| commit | 1c06aa98c63fff02679d446588fad06ae8cd706f (patch) | |
| tree | 505b78cebe55e09d00d54521c434cc0af2397165 /src/protocol.cpp | |
| parent | Merge pull request #2459 from Diapolo/pro-file (diff) | |
| download | discoin-1c06aa98c63fff02679d446588fad06ae8cd706f.tar.xz discoin-1c06aa98c63fff02679d446588fad06ae8cd706f.zip | |
Always print full hashes (tx, block, inv)
Diffstat (limited to 'src/protocol.cpp')
| -rw-r--r-- | src/protocol.cpp | 7 |
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 |