Compare commits

...

13 Commits

Author SHA1 Message Date
fanquake
6fd35e2cb1 Merge bitcoin/bitcoin#26639: [22.x] bump version to v22.1
8cc07f7fff doc: update release notes for 22.1 (fanquake)
45355ec10b doc: update manual pages for 22.1 (fanquake)
99e0ccc742 build: bump version to 22.1 final (fanquake)

Pull request description:

  Bump version to v22.1.
  Regenerate manpages.
  Add the only change since rc2 (https://github.com/bitcoin/bitcoin/pull/26633) to the release notes. That change does not require another rc.

ACKs for top commit:
  hebasto:
    ACK 8cc07f7fff, I have reviewed the changes and they look OK.

Tree-SHA512: 1d75235e41ac64f80d3b209934460cec05af1f4ddcd426bf941316374de7dc7d909de2e3dffe9716559b9422262c39724ff330cdbb3774b856e4e6bb8a10248f
2022-12-05 15:26:10 +00:00
fanquake
8cc07f7fff doc: update release notes for 22.1 2022-12-05 09:53:20 +00:00
fanquake
45355ec10b doc: update manual pages for 22.1 2022-12-05 09:50:44 +00:00
fanquake
99e0ccc742 build: bump version to 22.1 final 2022-12-05 09:45:12 +00:00
fanquake
1b05169c32 Merge bitcoin/bitcoin#26633: depends: update qt 5.12 url to archive location
28fc72f781 depends: update qt 5.12 url to archive location (BlackcoinDev)

Pull request description:

  QT 5.12 cannot be downloaded from https://download.qt.io/official_releases/qt/ It can be access from https://download.qt.io/archive/qt/

ACKs for top commit:
  hebasto:
    ACK 28fc72f781, verified a new link.
  jarolrod:
    ACK 28fc72f781

Tree-SHA512: 8aeb34d0e0f2fc8713306ee81a4520da4149552c068102a36aaaf2575544322b43c977797aba169b57333013219fa683e651225e087696dec2d835270d4dc9b5
2022-12-05 09:32:16 +00:00
BlackcoinDev
28fc72f781 depends: update qt 5.12 url to archive location
QT 5.12 cannot be downloaded from https://download.qt.io/official_releases/qt/ It can be access from https://download.qt.io/archive/qt/
2022-12-04 13:57:03 +01:00
fanquake
9182b2fbae Merge bitcoin/bitcoin#26547: [22.x] Bump version to 22.1rc2 & add release notes
d9bd628ac9 doc: add release notes for 22.1rc2 (fanquake)
6523107698 doc: Update manual pages for 22.1rc2 (fanquake)
6af7af61c9 build: Bump version to 22.1rc2 (fanquake)

Pull request description:

  Bump the version to 22.1rc2.
  Regenerate the man pages.
  Add WIP 22.1 release notes.

  Changes since rc1:
  - https://github.com/bitcoin-core/gui/pull/631
  - https://github.com/bitcoin-core/gui/pull/680

ACKs for top commit:
  stickies-v:
    ACK [d9bd628](d9bd628ac9)
  jarolrod:
    ACK d9bd628ac9

Tree-SHA512: 70b1723fd5f77a93763ffc153b18c5d6c11c8294828406bd5e93daf9e8aac5e62306280ef6601508b4d22e1cce5136687afc826be6d159816071549849c40f91
2022-11-23 17:32:58 +00:00
fanquake
d9bd628ac9 doc: add release notes for 22.1rc2 2022-11-22 17:05:21 +00:00
fanquake
6523107698 doc: Update manual pages for 22.1rc2 2022-11-22 09:40:22 +00:00
fanquake
6af7af61c9 build: Bump version to 22.1rc2 2022-11-22 09:40:22 +00:00
fanquake
c192b86c0b Merge bitcoin/bitcoin#26521: [22.x] GUI backports
272fa25304 Fixes bitcoin#26490 by preventing notifications (John Moffett)
7b7bbc145a Disallow encryption of watchonly wallets (Andrew Chow)

Pull request description:

  Backports:
  - bitcoin-core/gui#631
  - bitcoin-core/gui#680

ACKs for top commit:
  jarolrod:
    ACK 272fa25304

Tree-SHA512: 4c285327464240ace3884d9653cc46d8e7b60b888f3b096ceb4fd5000d084ea8d97f1ef86ca1dea8dc7d3be8cdd2da19eece2b8c5b7351c5961b50b78fcd4c4d
2022-11-22 09:30:56 +00:00
John Moffett
272fa25304 Fixes bitcoin#26490 by preventing notifications
MacOS 13 sends a window focus change notification after the main
window has been destroyed but before the QTApplication has been
destroyed. This results in the menu bar receiving a notification
despite it no longer existing. The solution is to pass the main
window as context when subscribing to the notifications. Qt
automatically unsubscribes to notifications if the sender OR
context is destroyed.

Github-Pull: bitcoin-core/gui#680
Rebased-From: 8a5014cd8a
2022-11-21 10:31:31 +00:00
Andrew Chow
7b7bbc145a Disallow encryption of watchonly wallets
Watchonly wallets do not have any private keys to encrypt. It does not
make sense to encrypt such wallets, so disable the option to encrypt
them.

This avoids an assertion that can be hit when encrypting watchonly descriptor
wallets.

Github-Pull: bitcoin-core/gui#631
Rebased-From: 4c495413e1
2022-11-21 10:31:30 +00:00
12 changed files with 96 additions and 78 deletions

View File

@@ -2,7 +2,7 @@ AC_PREREQ([2.69])
define(_CLIENT_VERSION_MAJOR, 22)
define(_CLIENT_VERSION_MINOR, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_RC, 1)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2021)
define(_COPYRIGHT_HOLDERS,[The %s developers])

View File

@@ -1,6 +1,6 @@
PACKAGE=qt
$(package)_version=5.12.11
$(package)_download_path=https://download.qt.io/official_releases/qt/5.12/$($(package)_version)/submodules
$(package)_download_path=https://download.qt.io/archive/qt/5.12/$($(package)_version)/submodules
$(package)_suffix=everywhere-src-$($(package)_version).tar.xz
$(package)_file_name=qtbase-$($(package)_suffix)
$(package)_sha256_hash=1c1b4e33137ca77881074c140d54c3c9747e845a31338cfe8680f171f0bc3a39

View File

@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH BITCOIN-CLI "1" "November 2022" "bitcoin-cli v22.1.0rc1" "User Commands"
.TH BITCOIN-CLI "1" "December 2022" "bitcoin-cli v22.1.0" "User Commands"
.SH NAME
bitcoin-cli \- manual page for bitcoin-cli v22.1.0rc1
bitcoin-cli \- manual page for bitcoin-cli v22.1.0
.SH SYNOPSIS
.B bitcoin-cli
[\fI\,options\/\fR] \fI\,<command> \/\fR[\fI\,params\/\fR] \fI\,Send command to Bitcoin Core\/\fR
@@ -15,7 +15,7 @@ bitcoin-cli \- manual page for bitcoin-cli v22.1.0rc1
.B bitcoin-cli
[\fI\,options\/\fR] \fI\,help <command> Get help for a command\/\fR
.SH DESCRIPTION
Bitcoin Core RPC client version v22.1.0rc1
Bitcoin Core RPC client version v22.1.0
.SH OPTIONS
.HP
\-?

View File

@@ -1,12 +1,12 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH BITCOIN-QT "1" "November 2022" "bitcoin-qt v22.1.0rc1" "User Commands"
.TH BITCOIN-QT "1" "December 2022" "bitcoin-qt v22.1.0" "User Commands"
.SH NAME
bitcoin-qt \- manual page for bitcoin-qt v22.1.0rc1
bitcoin-qt \- manual page for bitcoin-qt v22.1.0
.SH SYNOPSIS
.B bitcoin-qt
[\fI\,command-line options\/\fR]
.SH DESCRIPTION
Bitcoin Core version v22.1.0rc1
Bitcoin Core version v22.1.0
.SH OPTIONS
.HP
\-?

View File

@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH BITCOIN-TX "1" "November 2022" "bitcoin-tx v22.1.0rc1" "User Commands"
.TH BITCOIN-TX "1" "December 2022" "bitcoin-tx v22.1.0" "User Commands"
.SH NAME
bitcoin-tx \- manual page for bitcoin-tx v22.1.0rc1
bitcoin-tx \- manual page for bitcoin-tx v22.1.0
.SH SYNOPSIS
.B bitcoin-tx
[\fI\,options\/\fR] \fI\,<hex-tx> \/\fR[\fI\,commands\/\fR] \fI\,Update hex-encoded bitcoin transaction\/\fR
@@ -9,7 +9,7 @@ bitcoin-tx \- manual page for bitcoin-tx v22.1.0rc1
.B bitcoin-tx
[\fI\,options\/\fR] \fI\,-create \/\fR[\fI\,commands\/\fR] \fI\,Create hex-encoded bitcoin transaction\/\fR
.SH DESCRIPTION
Bitcoin Core bitcoin\-tx utility version v22.1.0rc1
Bitcoin Core bitcoin\-tx utility version v22.1.0
.SH OPTIONS
.HP
\-?

View File

@@ -1,12 +1,12 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH BITCOIN-UTIL "1" "November 2022" "bitcoin-util v22.1.0rc1" "User Commands"
.TH BITCOIN-UTIL "1" "December 2022" "bitcoin-util v22.1.0" "User Commands"
.SH NAME
bitcoin-util \- manual page for bitcoin-util v22.1.0rc1
bitcoin-util \- manual page for bitcoin-util v22.1.0
.SH SYNOPSIS
.B bitcoin-util
[\fI\,options\/\fR] [\fI\,commands\/\fR] \fI\,Do stuff\/\fR
.SH DESCRIPTION
Bitcoin Core bitcoin\-util utility version v22.1.0rc1
Bitcoin Core bitcoin\-util utility version v22.1.0
.SH OPTIONS
.HP
\-?

View File

@@ -1,9 +1,9 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH BITCOIN-WALLET "1" "November 2022" "bitcoin-wallet v22.1.0rc1" "User Commands"
.TH BITCOIN-WALLET "1" "December 2022" "bitcoin-wallet v22.1.0" "User Commands"
.SH NAME
bitcoin-wallet \- manual page for bitcoin-wallet v22.1.0rc1
bitcoin-wallet \- manual page for bitcoin-wallet v22.1.0
.SH DESCRIPTION
Bitcoin Core bitcoin\-wallet version v22.1.0rc1
Bitcoin Core bitcoin\-wallet version v22.1.0
.PP
bitcoin\-wallet is an offline tool for creating and interacting with Bitcoin Core wallet files.
By default bitcoin\-wallet will act on wallets in the default mainnet wallet directory in the datadir.

View File

@@ -1,12 +1,12 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
.TH BITCOIND "1" "November 2022" "bitcoind v22.1.0rc1" "User Commands"
.TH BITCOIND "1" "December 2022" "bitcoind v22.1.0" "User Commands"
.SH NAME
bitcoind \- manual page for bitcoind v22.1.0rc1
bitcoind \- manual page for bitcoind v22.1.0
.SH SYNOPSIS
.B bitcoind
[\fI\,options\/\fR] \fI\,Start Bitcoin Core\/\fR
.SH DESCRIPTION
Bitcoin Core version v22.1.0rc1
Bitcoin Core version v22.1.0
Copyright \(co 2009\-2021 The Bitcoin Core developers
.PP
Please contribute if you find Bitcoin Core useful. Visit

View File

@@ -1,9 +1,9 @@
22.0 Release Notes
22.1 Release Notes
==================
Bitcoin Core version 22.0 is now available from:
Bitcoin Core version 22.1 is now available from:
<https://bitcoincore.org/bin/bitcoin-core-22.0/>
<https://bitcoincore.org/bin/bitcoin-core-22.1/>
This release includes new features, various bug fixes and performance
improvements, as well as updated translations.
@@ -21,7 +21,7 @@ How to Upgrade
If you are running an older version, shut it down. Wait until it has completely
shut down (which might take a few minutes in some cases), then run the
installer (on Windows) or just copy over `/Applications/Bitcoin-Qt` (on Mac)
installer (on Windows) or just copy over `/Applications/Bitcoin-Qt` (on macOS)
or `bitcoind`/`bitcoin-qt` (on Linux).
Upgrading directly from a version of Bitcoin Core that has reached its EOL is
@@ -42,21 +42,6 @@ From Bitcoin Core 22.0 onwards, macOS versions earlier than 10.14 are no longer
Notable changes
===============
P2P and network changes
-----------------------
New and Updated RPCs
--------------------
Build System
------------
Files
-----
New settings
------------
Updated settings
----------------
@@ -66,57 +51,78 @@ Updated settings
mean `-persistmempool=1`. Passing `-persistmempool=0`, `-persistmempool=1`
and `-nopersistmempool` is unaffected. (#23061)
Tools and Utilities
-------------------
Wallet
------
GUI changes
-----------
Low-level changes
=================
RPC
---
Tests
-----
22.0 change log
===============
A detailed list of changes in this version follows. To keep the list to a manageable length, small refactors and typo fixes are not included, and similar changes are sometimes condensed into one line.
### Consensus
### Policy
### Mining
### Block and transaction handling
### P2P protocol and network code
### Wallet
### P2P
### RPC and other APIs
### GUI
- #25237 rpc: Capture UniValue by ref for rpcdoccheck
- #25983 Prevent data race for pathHandlers
- #26275 Fix crash on deriveaddresses when index is 2147483647 (2^31-1)
### Wallet
- #22781 wallet: fix the behavior of IsHDEnabled
- #22949 fee: Round up fee calculation to avoid a lower than expected feerate
- #23333 wallet: fix segfault by avoiding invalid default-ctored external_spk_managers entry
### Build system
### Tests and QA
- #22820 build, qt: Fix typo in QtInputSupport check
- #23045 build: Restrict check for CRC32C intrinsic to aarch64
- #23148 build: Fix guix linker-loader path and add check_ELF_interpreter
- #23314 build: explicitly disable libsecp256k1 openssl based tests
- #23580 build: patch qt to explicitly define previously implicit header include
- #24215 guix: ignore additional failing certvalidator test
- #24256 build: Bump depends packages (zmq, libXau)
- #25201 windeploy: Renewed windows code signing certificate
- #25985 Revert "build: Use Homebrew's sqlite package if it is available"
- #26633 depends: update qt 5.12 url to archive location
### GUI
- #gui631 Disallow encryption of watchonly wallets
- #gui680 Fixes MacOS 13 segfault by preventing certain notifications
- #24498 qt: Avoid crash on startup if int specified in settings.json
### Tests
- #23716 test: replace hashlib.ripemd160 with an own implementation
- #24239 test: fix ceildiv division by using integers
### Utilities
- #22390 system: skip trying to set the locale on NetBSD
- #22895 don't call GetBlockPos in ReadBlockFromDisk without cs_main lock
- #24104 fs: Make compatible with boost 1.78
### Miscellaneous
### Documentation
- #23335 refactor: include a missing <limits> header in fs.cpp
- #23504 ci: Replace soon EOL hirsute with jammy
- #26321 Adjust .tx/config for new Transifex CLI
Credits
=======
Thanks to everyone who directly contributed to this release:
- Andrew Chow
- BlackcoinDev
- Carl Dong
- Hennadii Stepanov
- Joan Karadimov
- John Moffett
- Jon Atack
- Kittywhiskers Van Gogh
- Marco Falke
- Martin Zumsande
- Michael Ford
- muxator
- Pieter Wuille
- Ryan Ofsky
- Saibato
- Sebastian Falbesoner
- W. J. van der Laan
As well as to everyone that helped with translations on
[Transifex](https://www.transifex.com/bitcoin/bitcoin/).

View File

@@ -488,7 +488,7 @@ void BitcoinGUI::createMenuBar()
connect(minimize_action, &QAction::triggered, [] {
QApplication::activeWindow()->showMinimized();
});
connect(qApp, &QApplication::focusWindowChanged, [minimize_action] (QWindow* window) {
connect(qApp, &QApplication::focusWindowChanged, this, [minimize_action] (QWindow* window) {
minimize_action->setEnabled(window != nullptr && (window->flags() & Qt::Dialog) != Qt::Dialog && window->windowState() != Qt::WindowMinimized);
});
@@ -503,7 +503,7 @@ void BitcoinGUI::createMenuBar()
}
});
connect(qApp, &QApplication::focusWindowChanged, [zoom_action] (QWindow* window) {
connect(qApp, &QApplication::focusWindowChanged, this, [zoom_action] (QWindow* window) {
zoom_action->setEnabled(window != nullptr);
});
#endif
@@ -1310,6 +1310,12 @@ void BitcoinGUI::setEncryptionStatus(int status)
{
switch(status)
{
case WalletModel::NoKeys:
labelWalletEncryptionIcon->hide();
encryptWalletAction->setChecked(false);
changePassphraseAction->setEnabled(false);
encryptWalletAction->setEnabled(false);
break;
case WalletModel::Unencrypted:
labelWalletEncryptionIcon->hide();
encryptWalletAction->setChecked(false);

View File

@@ -305,6 +305,11 @@ WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const
{
if(!m_wallet->isCrypted())
{
// A previous bug allowed for watchonly wallets to be encrypted (encryption keys set, but nothing is actually encrypted).
// To avoid misrepresenting the encryption status of such wallets, we only return NoKeys for watchonly wallets that are unencrypted.
if (m_wallet->privateKeysDisabled()) {
return NoKeys;
}
return Unencrypted;
}
else if(m_wallet->isLocked())

View File

@@ -71,6 +71,7 @@ public:
enum EncryptionStatus
{
NoKeys, // wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)
Unencrypted, // !wallet->IsCrypted()
Locked, // wallet->IsCrypted() && wallet->IsLocked()
Unlocked // wallet->IsCrypted() && !wallet->IsLocked()