From fce5d459f0a83f56a83059c5c69295d7745b51d2 Mon Sep 17 00:00:00 2001 From: David Burkett Date: Wed, 1 Jun 2022 22:57:39 -0400 Subject: [PATCH] Adding release notes and bumping version --- configure.ac | 2 +- .../release-notes-0.21.2.1.md | 21 ++++ doc/release-notes-litecoin.md | 111 +----------------- test/functional/mweb_wallet_upgrade.py | 2 +- 4 files changed, 29 insertions(+), 107 deletions(-) create mode 100644 doc/litecoin-release-notes/release-notes-0.21.2.1.md diff --git a/configure.ac b/configure.ac index a90ec9bbf6..1ee410b6a5 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ([2.69]) define(_CLIENT_VERSION_MAJOR, 0) define(_CLIENT_VERSION_MINOR, 21) define(_CLIENT_VERSION_REVISION, 2) -define(_CLIENT_VERSION_BUILD, 0) +define(_CLIENT_VERSION_BUILD, 1) define(_CLIENT_VERSION_RC, 0) define(_CLIENT_VERSION_IS_RELEASE, true) define(_COPYRIGHT_YEAR, 2022) diff --git a/doc/litecoin-release-notes/release-notes-0.21.2.1.md b/doc/litecoin-release-notes/release-notes-0.21.2.1.md new file mode 100644 index 0000000000..7723ceb233 --- /dev/null +++ b/doc/litecoin-release-notes/release-notes-0.21.2.1.md @@ -0,0 +1,21 @@ +Litecoin Core version 0.21.2.1 is now available from: + + . + +This includes a critical bug fix for upgraded wallets to receive via MWEB. + +Please report bugs using the issue tracker at GitHub: + + + +To receive security and update notifications, please subscribe to: + + + +Notable changes +=============== + +An issue with MWEB key generation for older wallets that were upgraded was solved. +Keys are now generated from the appropriate keypools, and coins sent to previously generated stealth addresses are recoverable. +Use `rescanblockchain` after upgrading to recover any missing MWEB coins. + diff --git a/doc/release-notes-litecoin.md b/doc/release-notes-litecoin.md index e41add2196..7723ceb233 100644 --- a/doc/release-notes-litecoin.md +++ b/doc/release-notes-litecoin.md @@ -1,8 +1,8 @@ -Litecoin Core version 0.21.2 is now available from: +Litecoin Core version 0.21.2.1 is now available from: - . + . -This is the largest update ever, providing full node, wallet, and mining support for MWEB. +This includes a critical bug fix for upgraded wallets to receive via MWEB. Please report bugs using the issue tracker at GitHub: @@ -12,109 +12,10 @@ To receive security and update notifications, please subscribe to: - -How to upgrade: -============== - -Firstly, thank you for running Litecoin Core and helping secure the network! - -As you’re running an older version of Litecoin Core, shut it down. Wait until it’s completely shut down - which might take a few minutes for older versions - then follow these simple steps: -For Windows: simply run the installer -For Mac: copy over to `/Applications/Litecoin-Qt` -For Linux: copy cover `litecoind`/`litecoin-qt`. - -NB: upgrading directly from an ‘end of life’ version of Litecoin Core is possible, but it might take a while if the data directory needs to be migrated. Old wallet versions of Litecoin Core are generally supported. - - -Compatibility: -============== - -Litecoin Core is supported and extensively tested on operating systems using the Linux kernel, macOS 10.10+, Windows 7 and newer. It’s not recommended to use Litecoin Core on unsupported systems. - -Litecoin Core should also work on most other Unix-like systems, but is not as frequently tested on them. - -MWEB fields added to BlockIndex, and block serialization format has changed. Downgrading to older versions is unsafe. - -If upgrading to 0.21.2 *after* MWEB has activated, you must resync to download MWEB blocks. - Notable changes =============== -Consensus changes ------------------ - -- This release implements the proposed MWEB consensus rules - ([LIP002](https://github.com/litecoin-project/lips/blob/master/lip-0002.mediawiki), - [LIP003](https://github.com/litecoin-project/lips/blob/master/lip-0003.mediawiki), and - [LIP004](https://github.com/litecoin-project/lips/blob/master/lip-0004.mediawiki)) - -P2P and network changes ------------------------ - -- A new service flag, NODE_MWEB (1 << 24), was added to signal to peers that the node supports MWEB. - When connected peers both advertise this capability, they are expected to provide all MWEB data when - sharing transactions, blocks, and compact blocks with each other. - -- Nodes now announce compact block version 3 support, informing peers that they can provide MWEB data - in compact blocks. - - -Updated RPCs ------------- - -- `getblockheader` now returns an additional `mweb_header` field containing - all of the MWEB header data, and an `mweb_amount` field containing the total - number of coins pegged-in to the MWEB after applying the block. - -- `getblock` now returns an additional `mweb` field containing MWEB header info, - and all of the inputs, outputs, and kernels in the MWEB block. - -- Added `mwebweight`, `descendantmwebweight`, `ancestormwebweight`, and `mweb` - fields to `getrawmempool`, `getmempoolancestors`, `getmempooldescendants`, - and `getmempoolentry`. - -- Added new fields to describe MWEB transaction inputs, outputs, and kernels - for `getrawtransaction`. - -Changes to Wallet or GUI related RPCs can be found in the GUI or Wallet section below. - -New settings ------------- - -- Added "fMWEBFeatures" option for enabling the new "Advanced MWEB Features" - control. - -Wallet Database ---------------- - -- Added "mweb_coin" type which stores MWEB coins and their derived keys. - -- Added CHDChain version 4 which includes an MWEB key index counter and - the stealth address scan key. - -- Added CKeyMetadata version 14 which includes the MWEB key index. - -- Added FEATURE_MWEB = 210000 minimum database version. - -Wallet RPC changes ------------------- - -- Added 'listwallettransactions' which matches the transaction list display values. - -GUI changes ------------ - -- Added an "Advanced MWEB Features" control for testing. It’s only available - when the "-debug" argument is supplied, and the option is turned on in the - settings dialog. - - -Credits -======= - -Thanks to everyone who directly contributed to this release: +An issue with MWEB key generation for older wallets that were upgraded was solved. +Keys are now generated from the appropriate keypools, and coins sent to previously generated stealth addresses are recoverable. +Use `rescanblockchain` after upgrading to recover any missing MWEB coins. -- [The Bitcoin Core Developers](https://github.com/bitcoin/bitcoin/tree/master/doc/release-notes) -- DavidBurkett -- hectorchu -- losh11 \ No newline at end of file diff --git a/test/functional/mweb_wallet_upgrade.py b/test/functional/mweb_wallet_upgrade.py index 110b44f9ac..2efdadd4cd 100644 --- a/test/functional/mweb_wallet_upgrade.py +++ b/test/functional/mweb_wallet_upgrade.py @@ -41,7 +41,7 @@ class MWEBWalletUpgradeTest(BitcoinTestFramework): # # Replace node1's wallet with the non-HD wallet.dat # - #self.log.info("Replacing wallet with non-hd wallet.dat") + self.log.info("Replacing wallet with non-hd wallet.dat") node1.get_wallet_rpc(self.default_wallet_name).unloadwallet() upgrade_wallet_dir = os.path.join(node1.datadir, "regtest", "wallets", self.default_wallet_name) shutil.rmtree(upgrade_wallet_dir)