Releases: btcsuite/btcd
v0.24.2
This release includes important bug fixes related to subtle interactions related to re-orgs and the UTXO set cache. These fixed are considered security critical.
This release also includes implementations of invalidateblock
and reconsiderblock
which can be useful in helping nodes that were afflicted by the aforementioned bugs to recover without needing to resync the entire chain.
WIth this release, btcd
now also implements the testmempoolaccept
RPC which can be useful to check a transaction candidate for validity from a policy and conflict perspective before broadcasting. Along the way, we've added some additional policy checks that exist in other Bitcoin full node implementations.
This release also contains fixes to some parsing issues discovered via fuzz testing.
Finally, as mentioned above release includes important security fixes, with full details to be disclosed in 90 days.
What's Changed
- Fix some typos by @Thabokani in #2085
- Fix some typos by @vuittont60 in #2098
- support
testmempoolaccept
for bothbitcoind
andbtcd
by @yyforyongyu in #2053 - rpcclient: make sure batch requests are GCed by @yyforyongyu in #2105
- refactor: add
make help
to display the usage for project Makefile by @Halimao in #2107 - blockchain: set the lastflushtime when setting the lastflushhash by @kcalvinalvin in #2089
- Added 'include_unsafe' option to FundRawTransaction by @nikicat in #2119
- netsync: don't update mempool/fee estimator unless we're synced up by @kcalvinalvin in #2108
- feat: Expose newFutureError for developer friendliness by @devlzcode in #2112
- Add
gettxspendingprevout
forbtcd
and fix version check by @yyforyongyu in #2125 - addrmgr: fix intermittent addrmanager_internal_test bug by @kcalvinalvin in #2131
- blockchain: don't rely on BlockHeightByHash for prune height calculations by @kcalvinalvin in #2122
- fix ioutil deprecated function by @theedtron in #2133
- blockchain: fix inconsistent utxocache and database on reorg by @kcalvinalvin in #2123
- blockchain: fix a bug where a duplicate entry is possible in the mapslice by @kcalvinalvin in #2134
- blockchain: always relock chainLock for subscription callbacks by @kcalvinalvin in #2128
- rpcclient: add detailed error types by @yyforyongyu in #2138
- Add check for maximum signature length in ecdsa.ParseDERSignature by @SulaimanAminuBarkindo in #2135
- build: bump version to v0.24.2-beta.rc1 by @Roasbeef in #2136
- wire: add method TxID to MsgTx by @ffranr in #2055
- fix typos by @mattn in #2100
- chore: remove trailing continue by @zhiqiangxu in #2091
- Convert
witnessToHex
into a methodToHexStrings
onTxWitness
by @ffranr in #1991 - chore: fix some comments by @xiaoxiangxianzi in #2146
- btcclient+btcjson: defaultMaxFeeRate to BTC/kvB by @YusukeShimizu in #2142
- chore: fix typos by @xiaoxianBoy in #2150
- Add new serialized pubkey type by @ffranr in #2156
- blockchain: Add IsAncestor method to blockNode by @kcalvinalvin in #2153
- fix some comment by @zhiqiangxu in #2080
- chore: fix function names in comment by @goodfirm in #2163
- Update developer_resources.md by @youngxhui in #2158
- docs: fix config documentation for
AgentWhitelist
by @youngjoon-lee in #2140 - release: add darwin-arm64 to target binaries by @kcalvinalvin in #2173
- chaincfg: update dnsseeds by @kcalvinalvin in #2174
- chore: fix some typos in comments by @oftenoccur in #2164
- chore: fix some function names by @MarkDaveny in #2180
- Update standardness rules congruent to Bitcoin Core by @ProofOfKeags in #2178
- blockchain, main: add and fix logs by @kcalvinalvin in #2182
- blockchain, fullblocktests, workmath, testhelper: add InvalidateBlock() method to BlockChain by @kcalvinalvin in #2155
- Added DecodeNoLimitGeneric to bech32.go by @MarcoEzekiel in #2186
- refactor: set strconv.ParseFloat bitsize to 64 by @lilasxie in #2062
- rpcclient/zmq: typo by @yosuzzy in #2184
- chore: fix some comments by @VitalikButerinEth in #2191
- Fix struct names by @coderwander in #2169
- blockchain: Add ReconsiderBlock() by @Crypt-iQ in #2196
- main, rpcclient, integration: add rpccalls for invalidate and reconsiderblock by @Crypt-iQ in #2197
- build: bump version to v0.24.2-beta by @Roasbeef in #2201
- rpcclient: update error str to match both versions by @yyforyongyu in #2205
New Contributors
- @Thabokani made their first contribution in #2085
- @vuittont60 made their first contribution in #2098
- @Halimao made their first contribution in #2107
- @nikicat made their first contribution in #2119
- @devlzcode made their first contribution in #2112
- @theedtron made their first contribution in #2133
- @SulaimanAminuBarkindo made their first contribution in #2135
- @mattn made their first contribution in #2100
- @zhiqiangxu made their first contribution in #2091
- @xiaoxiangxianzi made their first contribution in #2146
- @YusukeShimizu made their first contribution in #2142
- @xiaoxianBoy made their first contribution in #2150
- @goodfirm made their first contribution in #2163
- @youngxhui made their first contribution in #2158
- @youngjoon-lee made their first contribution in #2140
- @oftenoccur made their first contribution in #2164
- @MarkDaveny made their first contribution in #2180
- @ProofOfKeags made their first contribution in #2178
- @MarcoEzekiel made their first contribution in #2186
- @lilasxie made their first contribution in #2062
- @yosuzzy made their first contribution in #2184
- @VitalikButerinEth made their first contribution in #2191
- @coderwander made their first contribution in #2169
Full Changelog: v0.24.0...v0.24.2
v0.24.2-beta.rc1
What's Changed
- Fix some typos by @Thabokani in #2085
- Fix some typos by @vuittont60 in #2098
- support
testmempoolaccept
for bothbitcoind
andbtcd
by @yyforyongyu in #2053 - rpcclient: make sure batch requests are GCed by @yyforyongyu in #2105
- refactor: add
make help
to display the usage for project Makefile by @Halimao in #2107 - blockchain: set the lastflushtime when setting the lastflushhash by @kcalvinalvin in #2089
- Added 'include_unsafe' option to FundRawTransaction by @nikicat in #2119
- netsync: don't update mempool/fee estimator unless we're synced up by @kcalvinalvin in #2108
- feat: Expose newFutureError for developer friendliness by @devlzcode in #2112
- Add
gettxspendingprevout
forbtcd
and fix version check by @yyforyongyu in #2125 - addrmgr: fix intermittent addrmanager_internal_test bug by @kcalvinalvin in #2131
- blockchain: don't rely on BlockHeightByHash for prune height calculations by @kcalvinalvin in #2122
- fix ioutil deprecated function by @theedtron in #2133
- blockchain: fix inconsistent utxocache and database on reorg by @kcalvinalvin in #2123
- blockchain: fix a bug where a duplicate entry is possible in the mapslice by @kcalvinalvin in #2134
- blockchain: always relock chainLock for subscription callbacks by @kcalvinalvin in #2128
- rpcclient: add detailed error types by @yyforyongyu in #2138
- Add check for maximum signature length in ecdsa.ParseDERSignature by @SulaimanAminuBarkindo in #2135
- build: bump version to v0.24.2-beta.rc1 by @Roasbeef in #2136
New Contributors
- @Thabokani made their first contribution in #2085
- @vuittont60 made their first contribution in #2098
- @Halimao made their first contribution in #2107
- @nikicat made their first contribution in #2119
- @devlzcode made their first contribution in #2112
- @theedtron made their first contribution in #2133
- @SulaimanAminuBarkindo made their first contribution in #2135
Full Changelog: v0.24.0...v0.24.2-beta.rc1
btcd v0.24.0
This release is a major release that includes several general bug fixes, security bug fixes (please update!), and also a series of performance improvements that dramatically reduce the time for initial block download from ~45 hours+ to around 6 hours! With this release,btcd
now also supports BIP 155 and has gained support for pruning (--prune=MiB
).
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:
curl https://raw.githubusercontent.com/lightningnetwork/lnd/master/scripts/keys/roasbeef.asc | gpg --import
Once you have the required PGP keys, you can verify the release (assuming manifest-roasbeef-v0.24.0.sig
and manifest-v0.24.0.txt
are in the current directory) with:
gpg --verify manifest-roasbeef-v0.24.0.sig manifest-v0.24.0.txt
You should see the following if the verification was successful:
gpg: Signature made Sat Dec 30 17:11:22 2023 PST
gpg: using RSA key 60A1FA7DA5BFF08BDCBBE7903BBD59E99B280306
gpg: Good signature from "Olaoluwa Osuntokun <[email protected]>" [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.
What's Changed
- Musig2: Update to 1.0.0.rc2 by @sputn1ck in #1913
- btcec/schnorr/musig2: fix BenchmarkPartialVerify by @Roasbeef in #1920
- base58: fix decoding issue by @guggero in #1923
- Update Docker documentation towards building your own image by @guiand888 in #1925
- chainhash: JSON marshal hash as string by @ffranr in #1932
- Update Dockerfile to Alpine 3.16 by @guiand888 in #1924
- Fix memory leak in connmanager by @hxw in #1576
- Update mining.md by @jagottsicher in #1938
- Sighash taproot keyspend bug fix by @Roasbeef in #1941
- btcutil/psbt: export helper functions, fix/add encoding of unknown fields by @guggero in #1942
- docs: Update Go version as per the Readme. by @hristog in #1944
- txscript: Fix typo in IsUnspendable() comment by @kcalvinalvin in #1945
- txscript: allow script builder capacity to be specified by @guggero in #1954
- Export MakeScritpNum, AsSmallInt, and IsSmallInt by @martonp in #1956
- chainhash: JSON Unmarshal hash from appropriate string. by @LindenWang01 in #1952
- psbt: add verification method for utxo data by @ziggie1984 in #1964
- txscript: fix typos by @hieblmi in #1957
- chaincfg: Update checkpoints by @kcalvinalvin in #1968
- btcd: Add memory profiling flag by @kcalvinalvin in #1953
- blockchain: Use slices when fetching utxos by @kcalvinalvin in #1972
- main: Update README.md's minimum go version by @kcalvinalvin in #1977
- Add wire.Outpoint parser from string by @GeorgeTsagk in #1879
- multi: Run gofmt on the entire repository by @kcalvinalvin in #1981
- blockchain+chaincfg: disable retargeting for regtest by @guggero in #1985
- multi: remove repetitive the by @cuishuang in #1998
- blockchain: refactor and export header validation checks by @Crypt-iQ in #1931
- btcutil: format BTC amounts with trailing zeroes by @C-Otto in #1996
- musig2: fix early nonce gen option by @sputn1ck in #2003
- fix: missing sighashtype when finalizing taproot keyspend signature by @0xEclair in #2006
- Add address field (rpc client & server) by @lindlof in #1969
- schnorr: correct rfc reference in docs by @wydengyre in #2016
- blockchain, integration, mining, main: Rolling merkle root calculation by @kcalvinalvin in #1979
- schnorr: bip-340 compliant verification by @wydengyre in #2018
- txscript/engine: add execution StepCallback by @halseth in #1980
- schnorr: bip-340 compliant signing by @wydengyre in #2022
- main, wire, blockchain, indexers, ffldb: Add pruning by @kcalvinalvin in #1971
- chainhash: add support to legacy-marshaled hashes by @Beerosagos in #2025
- rpcclient: catch shutdown signal when sending RPC requests by @yyforyongyu in #2028
- integration: add test to check prune status by @kcalvinalvin in #2043
- fix: typos in sighash.go by @kevinheavey in #2047
- Update LICENSE by @davidcardenasus in #2045
- blockchain: export CheckSerializedHeight by @Crypt-iQ in #2051
- fix: default forward port by @0xEclair in #2038
- Added tests for FutureGetBestBlockHashResult.Receive by @ClaytonNorthey92 in #2048
- Added test for client.GetChainTxStatsAsync() in rpcclient. by @ClaytonNorthey92 in #2049
- added tests for GetBestBlockHashAsync by @ClaytonNorthey92 in #2057
- blockchain, btcjson: Implement getchaintips rpc call by @kcalvinalvin in #1918
- Fix typos by @xiaolou86 in #2064
- Fix typos on signature.go by @EvanTedesco in #2065
- schnorr: simplify some signing math by @wydengyre in #2042
- Correct comments in singature.go by @jcvernaleo in #2067
- blockchain: Add ancestor optimization to finding Ancestor by @kcalvinalvin in #1688
- Update petertodd seed DNS to .net by @petertodd in #2069
- wire, netsync: change isSyncCandidate behavior by @kcalvinalvin in #2035
- make: add install and release-install goals by @guggero in #1890
- chainhash, wire, btcutil, main: Memory efficient txhash by @kcalvinalvin in #1978
- blockchain, cmd, netsync, main: Add utxocache by @kcalvinalvin in #1955
- btcutil: update to chaincfg/chainhash/v1.1.0 by @Roasbeef in #2072
- fix: enhance code comments by @threewebcode in #2074
- multi: update main package and btcutil to chainhash/v1.1.0, use optimized dsha256 by @Roasbeef in #2075
- doc: correct comments by @bodhi-crypo in #2076
- rpctest: integration test harness fixes by @guggero in #2071
- btcutil: reuse serialized tx during TxHash by @Roasbeef in #2081
- wire: only borrow/return binaryFreeList buffers at the message level by @Roasbeef in #2073
- build: create btcd v0.24 release branch by @Roasbeef in #2082
New Contributors
- @guiand888 made their first contribution in #1925
- @hxw made their first contribution in #1576
- @jagottsicher made their first contribution in #1938
- @hristog made their first contribution in #1944
- @martonp made their first contribution in #1956
- @LindenWang01 made their first contribution in #1952
- @ziggie1984 made their first contribution in #1964
- @hieblmi made their first contribution in #1957
- @GeorgeTsagk made their first contribution in #1879
- @cuishuang made their first contribution in #1998
- @C-Otto made their first contribution in #1996
- @0xEclair made their first contribution in #2006
- @wydengyre made their first contribution in #2016
- @Beerosagos made their first contribution in #2025
- @kevinheavey made their first contribution in #2047
- ...
btcd v0.23.3
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:
curl https://raw.githubusercontent.com/lightningnetwork/lnd/master/scripts/keys/guggero.asc | gpg --import
Once you have the required PGP keys, you can verify the release (assuming manifest-guggero-v0.23.3.sig
and manifest-v0.23.3.txt
are in the current directory) with:
gpg --verify manifest-guggero-v0.23.3.sig manifest-v0.23.3.txt
You should see the following if the verification was successful:
gpg: Signature made Di 01 Nov 2022 14:00:20 CET
gpg: using RSA key F4FC70F07310028424EFC20A8E4256593F177720
gpg: Good signature from "Oliver Gugger <[email protected]>" [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.
What's Changed
- Fixed ban bug that doesn't print numTxns by @l0k18 in #1900
- btcec/schnorr/musig2: update to musig 1.0.0 by @Roasbeef in #1894
- wire: increase max witness items per input by @ellemouton in #1907
- build: bump version to v0.23.3 by @guggero in #1908
New Contributors
Full Changelog: v0.23.2...v0.23.3
btcd v0.23.2
What's Changed
- MuSig2: Catch up to 0.4.0 by @sputn1ck in #1865
- Bump btcd version in btcutil package by @darioush in #1866
- doc: fix Tor hidden service setup link by @shyba in #1883
- build: bump golang base image version to 1.17 by @tochicool in #1882
- wire: remove erroneous witness size check in wire parsing by @Roasbeef in #1896
- build: bump version to v0.23.2 by @Roasbeef in #1898
New Contributors
- @sputn1ck made their first contribution in #1865
- @darioush made their first contribution in #1866
- @shyba made their first contribution in #1883
- @tochicool made their first contribution in #1882
Full Changelog: v0.23.1...v0.23.2
btcd v0.22.2
What's Changed
- [release-v0.22.1] multi: Switch to chaincfg/chainhash module. by @davecgh in #1851
- release: create release branch for v0.22.2 to backport block parsing issue by @Roasbeef in #1901
Full Changelog: v0.22.1...v0.22.2
btcd v0.23.1-beta
What's Changed
- btcjson: Update WalletCreateFundedPsbtOpts.FeeRate type by @gnasr in #1729
- rpcserverhelp: Remove extra period for gettxout--synopsis by @kcalvinalvin in #1733
- mempool: export isDust for use in other projects by @Crypt-iQ in #1739
- Switch irc to libera.chat by @jcvernaleo in #1725
- rpcclient: Export symbols needed for custom commands by @JeremyRand in #1457
- btcec: check if recovered pk is at point of infinity by @MariusVanDerWijden in #1750
- mempool: introduce GetDustThreshold to export dust limit calculation by @Crypt-iQ in #1742
- build: bump min Go version to 1.16.8 add Go 1.17.1 by @Roasbeef in #1753
- Upgraded the docker version to 1.16 by @naveensrinivasan in #1755
- peer+server: add new config option to optionally disable stall detection by @Roasbeef in #1752
- addrmgr: make KnownAddress methods thread-safe by @chappjc in #1763
- comment improvement by @pyh4 in #1762
- Included permissions for GitHub action by @naveensrinivasan in #1756
- connmgr: Fix stale comment in TestRemovePendingConnection by @sloorush in #1749
- rpcclient: Add retry with backoffs to HTTP POST requests by @3nprob in #1743
- txscript: backport tokenizer from dcrd by @Roasbeef in #1769
- go.mod, go.sum: Update goleveldb by @kcalvinalvin in #1770
- reduce redundant memory allocation - resolves #1699 by @ziollek in #1759
- rpcclient+rpcserver+integration: GetNetworkHashPS3 must be float64 by @mattbajorek in #1778
- multi: move the btcutil repo into btcd as a sub-module by @Roasbeef in #1785
- btcutil: update modules to replace to top-level btcd repo by @Roasbeef in #1788
- chaincfg+blockchain: abstract/refactor BIP 9 version bits implementation to work w/ BIP 8 block heights by @Roasbeef in #1700
- btcec: create new btcec/v2 module that type aliases into the dcrec module by @Roasbeef in #1773
- btcec/v2: create new schnorr package for BIP-340, move existing ecdsa implementation into new ecdsa package by @Roasbeef in #1777
- build: update to btcec v2.1.0 by @Roasbeef in #1801
- build: retract bogus tags from btcd fork by @Roasbeef in #1805
- mempool/estimatefee: Fix negative index bug by @kcalvinalvin in #1813
- Replace github.com/btcsuite/goleveldb imports with github.com/syndtr/goleveldb by @anupcshan in #1780
- Remove circular dependency issue between
btcec/v2
and main package by @guggero in #1823 - Fixes coveralls coverage report by @vpereira01 in #1814
- Update LICENSE by @MarnixCroes in #1809
- build: update to btcec/v2.1.1 and chaincfg/chainhash/v1.00 by @Roasbeef in #1824
- multi: implement BIP 341 and 342 a.k.a complete taproot and tapscript consensus verification logic by @Roasbeef in #1787
- build: update to btcec/v2.1.3 and chaincfg/chainhash v1.0.1 by @Roasbeef in #1831
- blockchain: demote BIP 9 log statements by @Roasbeef in #1832
- psbt: allow empty bip32 derivation path by @guggero in #1834
- Revert "reduce redundant memory allocatio - resolves #1699" by @Crypt-iQ in #1804
- Default to JSONRPC 1.0 if the rpcVersion empty by @jsfour in #1837
- btcjson: Update fields in GetNetworkInfoResult by @dekokun in #1800
- harden daemon on OpenBSD by @timkuijsten in #1815
- rpctest: ensure rpclisten is set to an available port by @arshbot in #1806
- btcjson: add addresstype arg to getnewaddress by @chappjc in #1776
- chaincfg: use lower custom activation threshold for regtest+simnet by @Roasbeef in #1838
- rpcclient: add getzmqnotifications RPC by @torkelrogstad in #1810
- btcd: don't override explicitly set GOGC by @anupcshan in #1782
- Adds GH workflow to build docker images on version tags by @vpereira01 in #1830
- multi: implement BIP-155 addrv2 support by @Crypt-iQ in #1812
- psbt: always use non witness serialization format by @guggero in #1842
- btcec/schnorr/musig2: add new musig2 implementation based on musig2 draft BIP by @Roasbeef in #1820
- fuzz: add ParsePubKey fuzzer by @odeke-em in #1854
- psbt: add support for new Taproot fields by @guggero in #1847
- rpcclient: fix crash in http retry handler by @bhandras in #1856
- mempool: export checkStandardness func by @ellemouton in #1840
- build: bump version to v0.23 by @Roasbeef in #1860
- rpcclient: add getnewaddresstype and revert breaking change by @chappjc in #1844
- rpcclient: fix missing return by @bhandras in #1862
- build: bump version to v0.23.1 by @Roasbeef in #1863
New Contributors
- @gnasr made their first contribution in #1729
- @MariusVanDerWijden made their first contribution in #1750
- @naveensrinivasan made their first contribution in #1755
- @chappjc made their first contribution in #1763
- @pyh4 made their first contribution in #1762
- @sloorush made their first contribution in #1749
- @3nprob made their first contribution in #1743
- @ziollek made their first contribution in #1759
- @mattbajorek made their first contribution in #1778
- @anupcshan made their first contribution in #1780
- @vpereira01 made their first contribution in #1814
- @MarnixCroes made their first contribution in #1809
- @jsfour made their first contribution in #1837
- @dekokun made their first contribution in #1800
- @timkuijsten made their first contribution in #1815
- @arshbot made their first contribution in #1806
- @odeke-em made their first contribution in #1854
- @bhandras made their first contribution in #1856
- @ellemouton made their first contribution in #1840
Full Changelog: v0.22.0-beta...v0.23.1
btcd v0.22.0-beta
This release of btcd
is primarily to act as a catchup for the various changes that have accumulated.
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.22.0-beta.txt
and manifest-v0.22.0-beta.txt.sig
are in the current directory) with:
gpg --verify manifest-v0.22.0-beta.txt.sig
You should see the following if the verification was successful:
gpg: assuming signed data in 'manifest-v0.22.0-beta.txt'
gpg: Signature made Tue 08 Jun 2021 10:07:53 AM EDT
gpg: using DSA key 0DB39EAF526568682088EEDFB15210D35378BD54
gpg: Good signature from "John C. Vernaleo <[email protected]>" [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.16.5
, 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.22.0-beta
You should see something along the lines of this in the case of a valid tag:
gpg: Signature made Tue 08 Jun 2021 09:42:52 AM EDT
gpg: using DSA key 0DB39EAF526568682088EEDFB15210D35378BD54
gpg: Good signature from "John C. Vernaleo <[email protected]>" [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.22.0-beta.tar.gz
are in the current directory, follow these steps:
tar -xvzf vendor.tar.gz
tar -xvzf btcd-source-v0.22.0.tar.gz
GO111MODULE=on go install -v -mod=vendor
GO111MODULE=on go install -v -mod=vendor ./cmd/btcctl
The -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.sh
Release Notes
Protocol and network-related changes:
-
Added support for witness tx and block in
notfound
msg. (#1625) -
Added support for receiving
sendaddrv2
messages from a peer. (#1670) -
Fixed bug in
peer
package causing last block height to go backwards. (#1606) -
Added chain parameters for connecting to the public Signet network. (#1692, #1718)
Also added
--signet
command line flag tobtcctl
andbtcd
utilities.
Crypto changes:
- Fixed bug causing panic due to bad R and S signature components in
btcec.RecoverCompact
. (#1691) - Set the name (
secp256k1
) in the CurveParams of the S256 curve. (#1565)
Notable developer-related package changes:
-
Improve gc for
txscript.IsUnspendable
method. (#1615)Significantly reduced allocations, which should bring a performance gain during sync.
-
Used
RLock
/RUnlock
when possible in theaddrmgr
package. (#1697) -
Removed unknown block version warning in the
blockchain
package, due to false positives triggered by AsicBoost. (#1463) -
Added proper types for flag field and improve docs, for
msgtx
in thewire
package. (#1632) -
Added
chaincfg.RegisterHDKeyID
function to populate HD key ID pairs. (#1617) -
Fixed flaky hash cache test due to resetting RNG. (#1689)
-
Added new method
mining.AddWitnessCommitment
to add the witness commitment as anOP_RETURN
output within the coinbase transaction. (#1716)
RPC changes:
-
Implemented Batch JSON-RPC in
rpcclient
and server. (#1583)Please refer to
rpcclient/examples/bitcoincorehttpbulk/README.md
for examples. -
Implemented
rpcclient
method to invokegetdescriptorinfo
JSON-RPC command. (#1578) -
Updated the
rpcserver
handler forvalidateaddress
JSON-RPC command to have parity with the bitcoind 0.20.0 interface. (#1613) -
Implemented
rpcclient
method to invokegetblockfilter
JSON-RPC command. (#1579) -
Implemented
signmessagewithprivkey
JSON-RPC command in rpcserver. (#1585) -
Implemented
rpcclient
method to invokeimportmulti
JSON-RPC command. (#1579) -
Implemented
watchOnly
argument inrpcclient
method to invokelisttransactions
JSON-RPC command. (#1628) -
Updated
btcjson.ListTransactionsResult
for compatibility with Bitcoin Core 0.20.0. (#1626)Two new fields
BlockHeight
andLabel
were added as optional, to keep backwards compatibility. -
Implemented nullable optional JSON-RPC parameters. (#1594)
Fixed command marshalling dropping params that follow params with
nil
value. -
Implemented
rpcclient
and server method to invokegetnodeaddresses
JSON-RPC command. (#1590) -
Implemented
rpcclient
methods to invoke PSBT JSON-RPC commands. (#1596)The
walletcreatefundedpsbt
andwalletprocesspsbt
commands were implemented. -
Implemented
rpcclient
method to invokelistsinceblock
with theinclude_watchonly
parameter enabled. (#1451) -
Implemented
rpcclient
method to invokederiveaddresses
JSON-RPC command. (#1631) -
Implemented
rpcclient
method to invokegetblocktemplate
JSON-RPC command. (#1629)The corresponding
btcjson
structs were also updated to reflect changes in Bitcoin Core. -
Implemented
rpcclient
method to invokegetaddressinfo
JSON-RPC command. (#1633) -
Implemented
rpcclient
method to invokegetwalletinfo
JSON-RPC command. (#1638) -
Fixed error message in rpcserver when an unknown RPC command is encountered. (#1695)
-
Fixed error message returned by
estimatefee
when the number of blocks exceeds the max depth. (#1678) -
Updated
btcjson.GetBlockChainInfoResult
to include new fields in Bitcoin Core. (#1676)Two new fields
InitialBlockDownload
andSizeOnDisk
were added. -
Added
ExtraHeaders
inrpcclient.ConnConfig
struct. (#1669)It's useful when the RPC provider needs customized headers, for example, the
X-Auth-Token
header. -
Fixed bitcoind compatibility issue with the
sendrawtransaction
JSON-RPC command. (#1659) -
Added new JSON-RPC errors to
btcjson
package, and documented them. (#1648) -
Implemented
rpcclient
method to invokecreatewallet
JSON-RPC command. (#1650)This is also the first
rpcclient
method that uses the functional options pattern, which will be used more and more in future. -
Implemented
rpcclient
methods to invokebackupwallet
,dumpwallet
,loadwallet
andunloadwallet
JSON-RPC commands. (#1645) -
Fixed unmarshalling error in
getmininginfo
JSON-RPC command, for valid integers in scientific notation. (#1644) -
Implemented
rpcclient
method to invokegettxoutsetinfo
JSON-RPC command. (#1641) -
Implemented
rpcclient
method to invokesignrawtransactionwithwallet
JSON-RPC command. (#1642) -
Added
txid
togetblocktemplate
response of rpcserver. (#1639) -
Fixed monetary unit used in
createrawtransaction
JSON-RPC command in rpcserver. (#1614) -
Added
rawtx
field tobtcjson.GetBlockVerboseTxResult
to provide backwards compatibility with older versions of Bitcoin Core. (#1677)
Misc changes:
- Updated
btcutil
dependency. (#1704) - Updated documentation links to use https://pkg.go.dev instead of http://godoc.org. (#1693)
- Added Dockerfile to build and run btcd on Docker. (#1465)
- Reworked documentation and published on https://btcd.readthedocs.io. (#1468)
- Added support for Go 1.15. (#1619)
- Added Go 1.14 as the minimum supported version of Golang. (#1621)
- Removed unnecessary
GOMAXPROCS
function calls. (#1627) - Enabled Go Race detector and code coverage on GitHub Actions. (#1601)
Changelog
The full list of changes since v0.21.0-beta
can be found here:
Contributors (Alphabetical Order)
10gic
Andrew Tugarinov
Anirudha Bose
Appelberg-s
Armando Ochoa
Aurèle Oulès
Calvin Kim
Christian Lehmann
Conner Fromknecht
Dan Cline
David Mazary
Elliott Minns
Federico Bond
Friedger Müffke
Gustavo Chain
Hanjun Kim
Henry Fisher
Iskander Sharipov
Jake Sylvestre
Johan T. Halseth
John C. Vernaleo
Liran Sharir
Mikael Lindlof
Olaoluwa Osuntokun
Oliver Gugger
Rjected
Steven Kreuzer
Torkel Rogstad
Tristyn
Victor Lavaud
Vinayak Borkar
Wilmer Paulino
Yaacov Akiba Slama
ebiiim
ipriver
wakiyamap
yyforyongyu
btcd v0.21.0-beta
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.sig
You 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 <[email protected]>" [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-beta
You 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 <[email protected]>" [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/btcctl
The -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.sh
Release Notes
Network-related changes:
RPC changes:
-
The
Verbose
andVerboseTx
boolean fields inbtcjson.GetBlockCmd
have been replaced with a single integer field calledVerbosity
, to reflect the newgetblock
RPC call parameters introduced in Bitcoin Core 0.15.0. (#1529)The
getblock
RPC server command in btcd has also been updated with this change.
Backwards compatibility has been maintained inrpcclient
. (#1577) -
Added an optional
Params
field torpcclient.ConnConfig
, to represent the network that the server is running. (#1467) -
Added a new error code
ErrRPCInWarmup
inbtcjson
. (#1541) -
Updated
btcjson.GetMempoolEntryResult
to reflect the newgetmempoolentry
response in Bitcoin Core 0.19.0. (#1524) -
Implemented
rpcclient
methods to invokeestimatesmartfee
andgeneratetoaddress
JSON-RPC commands. (#1500) -
Implemented
rpcclient
method to invokegetblockstats
JSON-RPC command. (#1500) -
Parse serialized transaction from
createrawtransaction
JSON-RPC command using both segwit, and legacy format. (#1502) -
Support cookie-based authentication using a new
CookiePath
field inrpcclient.ConnConfig
. (#1460) -
Implemented
rpcclient
method to invokegetchaintxstats
JSON-RPC command. (#1571) -
Implemented
rpcclient
method to invokefundrawtransaction
JSON-RPC command. (#1553) -
Implemented
rpcclient
method to invokegetbalances
JSON-RPC command. (#1595) -
Added a new method
rpcclient.GetTransactionWatchOnly
to support passing theinclude_watchonly
argument togettransaction
JSON-RPC command. (#1592)
Crypto changes:
- Fixed panic in
fieldVal.SetByteSlice
when called with a value larger than 32 bytes. The improved version is approximately 35% faster. (#1602)
btcctl changes:
- Added
-regtest
mode 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
peer
package, 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
btcd v0.20.1-beta
This is a minor release of btcd
that fixes some bugs in the p2p sub-system, and also updates relevant parts of btcjson
to be compatible with bitciond 0.19
.
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:
curl https://keybase.io/roasbeef/pgp_keys.asc | gpg --import
Once you have the required PGP keys, you can verify the release (assuming manifest-v0.20.1-beta.txt
and manifest-v0.20.1-beta.txt.sig
are in the current directory) with:
gpg --verify manifest-v0.20.1-beta.txt.sig
You should see the following if the verification was successful:
gpg: assuming signed data in 'manifest-v0.20.1-beta.txt'
gpg: Signature made Tue Nov 12 19:08:07 2019 PST
gpg: using RSA key 4AB7F8DA6FAEBB3B70B1F903BC13F65E2DC84465
gpg: Good signature from "Olaoluwa Osuntokun <[email protected]>" [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.13.1
, 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.20.1-beta
You should see something along the lines of this in the case of a valid tag:
gpg: Signature made Tue Nov 12 18:29:03 2019 PST
gpg: using RSA key 4AB7F8DA6FAEBB3B70B1F903BC13F65E2DC84465
gpg: Good signature from "Olaoluwa Osuntokun <[email protected]>" [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.20.1-beta.tar.gz
are in the current directory, follow these steps:
tar -xvzf vendor.tar.gz
tar -xvzf btcd-source-v0.20.1.tar.gz
GO111MODULE=on go install -v -mod=vendor
GO111MODULE=on go install -v -mod=vendor ./cmd/btcctl
The -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.sh
Release Notes
The btcjson
package as been updated to be compatible with bitcoind v0.19.0
as required by the lnd
project.
A race condition in the server related to the set of known addresses for a peer has been eliminated.
Changelog
The full list of changes since v0.20.0-beta
can be found here:
Contributors (Alphabetical Order)
Olaoluwa Osuntokun
Wilmer Paulino
Eugene Zeigel