diff options
author | Determinant <tederminant@gmail.com> | 2018-07-27 17:33:23 -0400 |
---|---|---|
committer | Determinant <tederminant@gmail.com> | 2018-07-27 17:33:23 -0400 |
commit | ec6a1f84324faf8e7c92f32137464db57410f58a (patch) | |
tree | 10a0f289a255eb5c78be2cb4a5e2702fc7995182 /include/hotstuff/type.h | |
parent | 5f00c067f863f812a740dc209b1fb829f04042eb (diff) |
fix signature verification bug
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); } |