diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-12-19 13:07:07 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-05 15:45:36 +0100 |
commit | 6bd0dc2a845b4d17d5ffabbdadda80d47d6c2dc3 (patch) | |
tree | 0a9d27e397e15c0e7bcbe8f3eff95c5285a2d7ba /src/arith_uint256.h | |
parent | 30007fda76aa7ba4e4090f7a16298874a7722926 (diff) |
arith_uint256: remove initialization from byte vector
Remove initialization from vector (as this is only used in the tests).
Also implement SetHex and GetHex in terms of uint256, to avoid
duplicate code as well as avoid endianness issues (as they
work in term of bytes).
Diffstat (limited to 'src/arith_uint256.h')
-rw-r--r-- | src/arith_uint256.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/arith_uint256.h b/src/arith_uint256.h index ec8e15997f..b6ba3a1087 100644 --- a/src/arith_uint256.h +++ b/src/arith_uint256.h @@ -57,7 +57,6 @@ public: } explicit base_uint(const std::string& str); - explicit base_uint(const std::vector<unsigned char>& vch); bool operator!() const { @@ -257,7 +256,6 @@ public: arith_uint256(const base_uint<256>& b) : base_uint<256>(b) {} arith_uint256(uint64_t b) : base_uint<256>(b) {} explicit arith_uint256(const std::string& str) : base_uint<256>(str) {} - explicit arith_uint256(const std::vector<unsigned char>& vch) : base_uint<256>(vch) {} /** * The "compact" format is a representation of a whole |