Commit 64a269d9 authored by Ashot's avatar Ashot
Browse files

Fixed private key version byte size

parent d88377fd
Showing with 8 additions and 1 deletion
+8 -1
......@@ -340,3 +340,8 @@ bool CBitcoinSecret::SetString(const std::string& strSecret)
{
return SetString(strSecret.c_str());
}
unsigned int CBitcoinSecret::GetVersionBytes() const
{
return 1;
}
......@@ -101,7 +101,7 @@ private:
const unsigned int m_versionBytesOld;
private:
unsigned int GetVersionBytes() const;
virtual unsigned int GetVersionBytes() const;
};
/** base58-encoded Crown addresses.
......@@ -151,6 +151,8 @@ public:
CBitcoinSecret(const CKey& vchSecret) { SetKey(vchSecret); }
CBitcoinSecret() {}
private:
unsigned int GetVersionBytes() const;
};
template<typename K, int Size, CChainParams::Base58Type Type> class CBitcoinExtKeyBase : public CBase58Data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment