From 87d9d59f11737c155285a012e1cb3b9b9dde3435 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 12 May 2012 21:52:04 -0700 Subject: [PATCH] Add strHex for uint160. --- src/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils.h b/src/utils.h index 1d7ace235..94a6295d7 100644 --- a/src/utils.h +++ b/src/utils.h @@ -6,6 +6,8 @@ #include +#include "uint256.h" + #define nothing() do {} while (0) #ifndef MAX @@ -60,6 +62,10 @@ inline std::string strHex(const std::vector vchData) { return strHex(vchData.begin(), vchData.size()); } +inline const std::string strHex(const uint160& ui) { + return strHex(ui.begin(), ui.size()); +} + int charUnHex(char cDigit); void strUnHex(std::string& strDst, const std::string& strSrc);