diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-01-31 19:08:03 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-01-31 19:13:45 +0100 |
commit | 4b6673d3826128a9f58fd5417aaf4c2f4169c6aa (patch) | |
tree | 6a50199735eac3abc4cc96bfbfbec09da0764246 /src | |
parent | efb6ddef9cb341428cbedf4373d1bdd19685a827 (diff) | |
parent | 3617f117394285c87c395a0ccc92941977f97019 (diff) |
Merge #15299: Fix assertion in CKey::SignCompact
3617f117394285c87c395a0ccc92941977f97019 Fix assertion in CKey::SignCompact (João Barbosa)
Pull request description:
Fixes #15286.
Tree-SHA512: b39b6f26f87cf1850b13f625ab6de963937b6ecb5b6d4ac4932134f0491a6c0fa61c6d6e6980e8b1770775578dc365fdd1b6ba426bba1f7c23430f68b3a2339a
Diffstat (limited to 'src')
-rw-r--r-- | src/key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/key.cpp b/src/key.cpp index 80d6589a3c..9d982fc44f 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -246,7 +246,7 @@ bool CKey::SignCompact(const uint256 &hash, std::vector<unsigned char>& vchSig) secp256k1_ecdsa_recoverable_signature sig; int ret = secp256k1_ecdsa_sign_recoverable(secp256k1_context_sign, &sig, hash.begin(), begin(), secp256k1_nonce_function_rfc6979, nullptr); assert(ret); - secp256k1_ecdsa_recoverable_signature_serialize_compact(secp256k1_context_sign, &vchSig[1], &rec, &sig); + ret = secp256k1_ecdsa_recoverable_signature_serialize_compact(secp256k1_context_sign, &vchSig[1], &rec, &sig); assert(ret); assert(rec != -1); vchSig[0] = 27 + rec + (fCompressed ? 4 : 0); |