mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Always print full hashes (tx, block, inv)
This commit is contained in:
parent
ab806a69a2
commit
1c06aa98c6
6 changed files with 44 additions and 54 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue