diff --git a/CHANGELOG.md b/CHANGELOG.md index c353684138..6dd85d4f21 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/). +## [5.4.4.0] 2023-04-21, leisure + +### Added +none + +### Changed +none + +### Removed +none + +### Fixed + - wallet, rpc: Add missing assignment of fCompressed in dumpprivkey #2680 (@jamescowens) + ## [5.4.3.0] 2023-04-05, leisure ### Added diff --git a/configure.ac b/configure.ac index 5b123885ca..295ecb2d22 100755 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N) AC_PREREQ([2.60]) define(_CLIENT_VERSION_MAJOR, 5) define(_CLIENT_VERSION_MINOR, 4) -define(_CLIENT_VERSION_REVISION, 3) +define(_CLIENT_VERSION_REVISION, 4) define(_CLIENT_VERSION_BUILD, 0) define(_CLIENT_VERSION_IS_RELEASE, true) define(_COPYRIGHT_YEAR, 2023) diff --git a/src/key.cpp b/src/key.cpp index 68922d2244..cf0f9fb104 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -284,7 +284,7 @@ bool CKey::SignCompact(const uint256 &hash, std::vector& vchSig) bool CKey::Load(const CPrivKey &seckey, const CPubKey &vchPubKey, bool fSkipCheck=false) { if (!ec_seckey_import_der(secp256k1_context_sign, (unsigned char*)begin(), seckey.data(), seckey.size())) return false; - fCompressed = vchPubKey.IsCompressed(); + fCompressed = seckey.size() == CKey::COMPRESSED_SIZE; fValid = true; if (fSkipCheck) diff --git a/src/keystore.h b/src/keystore.h index 7c28d1f727..cb6ab524a3 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -40,6 +40,7 @@ class CKeyStore CKey key; if (!GetKey(address, key)) return false; + fCompressed = key.IsCompressed(); vchSecret.assign(key.begin(), key.end()); return true; }