This release of btcd is primarily to act as a catchup for the various changes that have accumulated and to help move back to a more regular schedule.
Verifying the Release
In order to verify the release, you'll need to have gpg or gpg2 installed on your system. Once you've obtained a copy (and hopefully verified that as well), you'll first need to import the keys that have signed this release if you haven't done so already:
Once you have the required PGP keys, you can verify the release (assuming manifest-v0.21.0-beta.txt and manifest-v0.21.0-beta.txt.sig are in the current directory) with:
gpg --verify manifest-v0.21.0-beta.txt.sigYou should see the following if the verification was successful:
gpg: assuming signed data in 'manifest-v0.21.0-beta.txt'
gpg: Signature made Fri 28 Aug 2020 12:40:24 PM EDT
gpg: using DSA key 0DB39EAF526568682088EEDFB15210D35378BD54
gpg: Good signature from "John C. Vernaleo <john@netpurgatory.com>" [ultimate]That will verify the signature of the manifest file, which ensures integrity and authenticity of the archive you've downloaded locally containing the binaries. Next, depending on your operating system, you should then re-compute the sha256 hash of the archive with shasum -a 256 <filename>, compare it with the corresponding one in the manifest file, and ensure they match exactly.
Verifying the Release Binaries
As of this release, our release binaries are fully reproducible thanks to go1.13! Third parties are now able to verify that the release binaries were produced properly without having to trust the release manager(s). See our reproducible builds guide for how this can be achieved. The release binaries are compiled with go1.14, which is required by verifiers to arrive at the same ones.
Finally, you can also verify the tag itself with the following command:
git verify-tag v0.21.0-betaYou should see something along the lines of this in the case of a valid tag:
gpg: Signature made Fri 28 Aug 2020 09:58:10 AM EDT
gpg: using DSA key 0DB39EAF526568682088EEDFB15210D35378BD54
gpg: Good signature from "John C. Vernaleo <john@netpurgatory.com>" [ultimate]Building the Contained Release
Users are able to rebuild the target release themselves without having to fetch any of the dependencies. In order to do so, assuming that vendor.tar.gz and btcd-source-v0.21.0-beta.tar.gz are in the current directory, follow these steps:
tar -xvzf vendor.tar.gz
tar -xvzf btcd-source-v0.21.0.tar.gz
GO111MODULE=on go install -v -mod=vendor
GO111MODULE=on go install -v -mod=vendor ./cmd/btcctlThe -mod=vendor flag tells the go build command that it doesn't need to fetch the dependencies, and instead, they're all enclosed in the local vendor directory.
Additionally, it's also possible to use the enclosed release.sh script to bundle a release for a specific system like so:
BTCBUILDSYS="linux-arm64 darwin-amd64" ./build/release/release.shRelease Notes
Network-related changes:
- Handle
notfoundmessages from peers innetsyncpackage. (#1603)
RPC changes:
-
The
VerboseandVerboseTxboolean fields inbtcjson.GetBlockCmdhave been replaced with a single integer field calledVerbosity, to reflect the newgetblockRPC call parameters introduced in Bitcoin Core 0.15.0. (#1529)The
getblockRPC server command in btcd has also been updated with this change. Backwards compatibility has been maintained inrpcclient. (#1577) -
Added an optional
Paramsfield torpcclient.ConnConfig, to represent the network that the server is running. (#1467) -
Added a new error code
ErrRPCInWarmupinbtcjson. (#1541) -
Updated
btcjson.GetMempoolEntryResultto reflect the newgetmempoolentryresponse in Bitcoin Core 0.19.0. (#1524) -
Implemented
rpcclientmethods to invokeestimatesmartfeeandgeneratetoaddressJSON-RPC commands. (#1500) -
Implemented
rpcclientmethod to invokegetblockstatsJSON-RPC command. (#1500) -
Parse serialized transaction from
createrawtransactionJSON-RPC command using both segwit, and legacy format. (#1502) -
Support cookie-based authentication using a new
CookiePathfield inrpcclient.ConnConfig. (#1460) -
Implemented
rpcclientmethod to invokegetchaintxstatsJSON-RPC command. (#1571) -
Implemented
rpcclientmethod to invokefundrawtransactionJSON-RPC command. (#1553) -
Implemented
rpcclientmethod to invokegetbalancesJSON-RPC command. (#1595) -
Added a new method
rpcclient.GetTransactionWatchOnlyto support passing theinclude_watchonlyargument togettransactionJSON-RPC command. (#1592)
Crypto changes:
- Fixed panic in
fieldVal.SetByteSlicewhen called with a value larger than 32 bytes. The improved version is approximately 35% faster. (#1602)
btcctl changes:
- Added
-regtestmode to btcctl. (#1556)
Misc changes:
- Fixed a bug due to a deadlock in
connmgr's dynamic ban scoring. (#1509) - Replaced TravisCI with GitHub Actions. (#1575)
- Improved chain state init efficiency. (#1580)
- Added
blockchain.NewUtxoEntry()to directly create entries forUtxoViewpoint. (#1588) - Switch to a generic LRU implementation in the
peerpackage, from decred/dcrd. (#1599)
Changelog
The full list of changes since v0.21.0-beta can be found here:
Contributors (Alphabetical Order)
Anirudha Bose Antonin Hildebrand Dan Cline Daniel McNally David Hill Federico Bond George Tankersley Henry Henry Harder Iskander Sharipov Ivan Kuznetsov Jake Sylvestre Javed Khan JeremyRand Jin John C. Vernaleo Kulpreet Singh Mikael Lindlof Murray Nesbitt Nisen Olaoluwa Osuntokun Oliver Gugger Steven Roose Torkel Rogstad Tyler Chambers Wilmer Paulino Yash Bhutwala adiabat jalavosus mohanson qqjettkgjzhxmwj qshuai shuai.qi tpkeeper