Fix logging transactions that throw

This commit is contained in:
JoelKatz
2014-03-09 13:13:50 -07:00
committed by Nik Bougalis
parent b4593a274d
commit cf63b5c859
2 changed files with 13 additions and 9 deletions

View File

@@ -217,6 +217,15 @@ public:
return v.mData != mData;
}
std::string getHex () const
{
std::stringstream h;
h << std::hex << std::setfill ('0');
for (unsigned char const& element : mData)
h << std::setw (2) << element;
return h.str ();
}
// low-level VL length encode/decode functions
static Blob encodeVL (int length);
static int lengthVL (int length)