From: 0xDEADFACE Date: Sat, 13 Feb 2016 13:51:15 +0000 (-0800) Subject: Remove asserts. X-Git-Tag: nvc-v0.5.6~84 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=e30856438a6af14256dcf3f3169c65907f28363b Remove asserts. --- diff --git a/src/key.cpp b/src/key.cpp index 9503f95..89c0dcc 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -996,17 +996,16 @@ bool CMalleableKey::SetString(const std::string& strMutableKey) CMalleableKeyView::CMalleableKeyView(const CMalleableKey &b) { - assert(b.nVersion == CURRENT_VERSION); vchSecretL = b.vchSecretL; CKey H; H.SetSecret(b.vchSecretH, true); vchPubKeyH = H.GetPubKey().Raw(); + nVersion = b.nVersion; } CMalleableKeyView::CMalleableKeyView(const CMalleableKeyView &b) { - assert(b.nVersion == CURRENT_VERSION); vchSecretL = b.vchSecretL; vchPubKeyH = b.vchPubKeyH; nVersion = CURRENT_VERSION; @@ -1016,16 +1015,17 @@ CMalleableKeyView::CMalleableKeyView(const CSecret &L, const CPubKey &pvchPubKey { vchSecretL = L; vchPubKeyH = pvchPubKeyH.Raw(); + nVersion = CURRENT_VERSION; } CMalleableKeyView& CMalleableKeyView::operator=(const CMalleableKey &b) { - assert(b.nVersion == CURRENT_VERSION); vchSecretL = b.vchSecretL; CKey H; H.SetSecret(b.vchSecretH, true); vchPubKeyH = H.GetPubKey().Raw(); + nVersion = b.nVersion; return (*this); }