diff options
Diffstat (limited to 'include/hotstuff/type.h')
-rw-r--r-- | include/hotstuff/type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hotstuff/type.h b/include/hotstuff/type.h index 6014dab..0897956 100644 --- a/include/hotstuff/type.h +++ b/include/hotstuff/type.h @@ -28,7 +28,8 @@ using salticidae::Event; using salticidae::EventContext; using promise::promise_t; -inline std::string get_hex10(const uint256_t &x) { +template<typename SerialType> +inline std::string get_hex10(const SerialType &x) { return get_hex(x).substr(0, 10); } |