From e30856438a6af14256dcf3f3169c65907f28363b Mon Sep 17 00:00:00 2001 From: 0xDEADFACE Date: Sat, 13 Feb 2016 05:51:15 -0800 Subject: [PATCH] Remove asserts. --- src/key.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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); } -- 1.7.1