X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fbase58.cpp;h=b077a0b44c0368a504ed54da7f660c4607290fcd;hb=HEAD;hp=b6b7160af1f67cf505aa90487c150d5870b5937e;hpb=fd3e29de89dadb40606f9b5c258b673ba9f24798;p=novacoin.git diff --git a/src/base58.cpp b/src/base58.cpp index b6b7160..b077a0b 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -14,8 +14,7 @@ // #include "base58.h" -#include "key.h" -#include "script.h" +#include "hash.h" static const std::array digits = { '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', @@ -259,7 +258,7 @@ bool DecodeBase58Check(const std::string& str, std::vector& vchRe std::string CBase58Data::ToString() const { - std::vector vch(1, nVersion); + std::vector vch{nVersion}; vch.insert(vch.end(), vchData.begin(), vchData.end()); return EncodeBase58Check(vch); }