Skip to content

Commit 3ebf455

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents c807bfe + eaf0459 commit 3ebf455

File tree

353 files changed

+32973
-12635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+32973
-12635
lines changed

.github/workflows/go.yml

+61-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,74 @@
11
name: Build and Test
22
on: [push, pull_request]
3+
4+
env:
5+
# go needs absolute directories, using the $HOME variable doesn't work here.
6+
GOCACHE: /home/runner/work/go/pkg/build
7+
GOPATH: /home/runner/work/go
8+
GO_VERSION: 1.17.5
9+
310
jobs:
411
build:
5-
name: Go CI
12+
name: Build
613
runs-on: ubuntu-latest
7-
strategy:
8-
matrix:
9-
go: [1.13, 1.14]
1014
steps:
1115
- name: Set up Go
1216
uses: actions/setup-go@v2
1317
with:
14-
go-version: ${{ matrix.go }}
18+
go-version: ${{ env.GO_VERSION }}
19+
1520
- name: Check out source
1621
uses: actions/checkout@v2
17-
- name: Install Linters
18-
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0"
22+
1923
- name: Build
20-
env:
21-
GO111MODULE: "on"
22-
run: go build ./...
24+
run: make build
25+
26+
test-cover:
27+
name: Unit coverage
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Set up Go
31+
uses: actions/setup-go@v2
32+
with:
33+
go-version: ${{ env.GO_VERSION }}
34+
35+
- name: Check out source
36+
uses: actions/checkout@v2
37+
38+
- name: Test
39+
run: make unit-cover
40+
41+
- name: Send top-level coverage
42+
uses: shogo82148/actions-goveralls@v1
43+
with:
44+
path-to-profile: coverage.txt
45+
46+
- name: Send btcec
47+
uses: shogo82148/actions-goveralls@v1
48+
with:
49+
path-to-profile: btcec/coverage.txt
50+
51+
- name: Send btcutil coverage
52+
uses: shogo82148/actions-goveralls@v1
53+
with:
54+
path-to-profile: btcutil/coverage.txt
55+
56+
- name: Send btcutil coverage for psbt package
57+
uses: shogo82148/actions-goveralls@v1
58+
with:
59+
path-to-profile: btcutil/psbt/coverage.txt
60+
61+
test-race:
62+
name: Unit race
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Set up Go
66+
uses: actions/setup-go@v2
67+
with:
68+
go-version: ${{ env.GO_VERSION }}
69+
70+
- name: Check out source
71+
uses: actions/checkout@v2
72+
2373
- name: Test
24-
env:
25-
GO111MODULE: "on"
26-
run: |
27-
sh ./goclean.sh
74+
run: make unit-race

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ _testmain.go
3333

3434
ltcd
3535
*.exe
36+
37+
# Code coverage files
38+
profile.tmp
39+
profile.cov
40+
coverage.txt
41+
btcec/coverage.txt
42+
btcutil/coverage.txt
43+
btcutil/psbt/coverage.txt

CHANGES

+275
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,281 @@ User visible changes for ltcd
33
A full-node bitcoin implementation written in Go
44
============================================================================
55

6+
Changes in 0.22.0 (Tue Jun 01 2021)
7+
- Protocol and network-related changes:
8+
- Add support for witness tx and block in notfound msg (#1625)
9+
- Add support for receiving sendaddrv2 messages from a peer (#1670)
10+
- Fix bug in peer package causing last block height to go backwards
11+
(#1606)
12+
- Add chain parameters for connecting to the public Signet network
13+
(#1692, #1718)
14+
- Crypto changes:
15+
- Fix bug causing panic due to bad R and S signature components in
16+
btcec.RecoverCompact (#1691)
17+
- Set the name (secp256k1) in the CurveParams of the S256 curve
18+
(#1565)
19+
- Notable developer-related package changes:
20+
- Remove unknown block version warning in the blockchain package,
21+
due to false positives triggered by AsicBoost (#1463)
22+
- Add chaincfg.RegisterHDKeyID function to populate HD key ID pairs
23+
(#1617)
24+
- Add new method mining.AddWitnessCommitment to add the witness
25+
commitment as an OP_RETURN output within the coinbase transaction.
26+
(#1716)
27+
- RPC changes:
28+
- Support Batch JSON-RPC in rpcclient and server (#1583)
29+
- Add rpcclient method to invoke getdescriptorinfo JSON-RPC command
30+
(#1578)
31+
- Update the rpcserver handler for validateaddress JSON-RPC command to
32+
have parity with the bitcoind 0.20.0 interface (#1613)
33+
- Add rpcclient method to invoke getblockfilter JSON-RPC command
34+
(#1579)
35+
- Add signmessagewithprivkey JSON-RPC command in rpcserver (#1585)
36+
- Add rpcclient method to invoke importmulti JSON-RPC command (#1579)
37+
- Add watchOnly argument in rpcclient method to invoke
38+
listtransactions JSON-RPC command (#1628)
39+
- Update btcjson.ListTransactionsResult for compatibility with Bitcoin
40+
Core 0.20.0 (#1626)
41+
- Support nullable optional JSON-RPC parameters (#1594)
42+
- Add rpcclient and server method to invoke getnodeaddresses JSON-RPC
43+
command (#1590)
44+
- Add rpcclient methods to invoke PSBT JSON-RPC commands (#1596)
45+
- Add rpcclient method to invoke listsinceblock with the
46+
include_watchonly parameter enabled (#1451)
47+
- Add rpcclient method to invoke deriveaddresses JSON-RPC command
48+
(#1631)
49+
- Add rpcclient method to invoke getblocktemplate JSON-RPC command
50+
(#1629)
51+
- Add rpcclient method to invoke getaddressinfo JSON-RPC command
52+
(#1633)
53+
- Add rpcclient method to invoke getwalletinfo JSON-RPC command
54+
(#1638)
55+
- Fix error message in rpcserver when an unknown RPC command is
56+
encountered (#1695)
57+
- Fix error message returned by estimatefee when the number of blocks
58+
exceeds the max depth (#1678)
59+
- Update btcjson.GetBlockChainInfoResult to include new fields in
60+
Bitcoin Core (#1676)
61+
- Add ExtraHeaders in rpcclient.ConnConfig struct (#1669)
62+
- Fix bitcoind compatibility issue with the sendrawtransaction
63+
JSON-RPC command (#1659)
64+
- Add new JSON-RPC errors to btcjson package, and documented them
65+
(#1648)
66+
- Add rpcclient method to invoke createwallet JSON-RPC command
67+
(#1650)
68+
- Add rpcclient methods to invoke backupwallet, dumpwallet, loadwallet
69+
and unloadwallet JSON-RPC commands (#1645)
70+
- Fix unmarshalling error in getmininginfo JSON-RPC command, for valid
71+
integers in scientific notation (#1644)
72+
- Add rpcclient method to invoke gettxoutsetinfo JSON-RPC command
73+
(#1641)
74+
- Add rpcclient method to invoke signrawtransactionwithwallet JSON-RPC
75+
command (#1642)
76+
- Add txid to getblocktemplate response of rpcserver (#1639)
77+
- Fix monetary unit used in createrawtransaction JSON-RPC command in
78+
rpcserver (#1614)
79+
- Add rawtx field to btcjson.GetBlockVerboseTxResult to provide
80+
backwards compatibility with older versions of Bitcoin Core (#1677)
81+
- Misc changes:
82+
- Update btcutil dependency (#1704)
83+
- Add Dockerfile to build and run btcd on Docker (#1465)
84+
- Rework documentation and publish on https://btcd.readthedocs.io (#1468)
85+
- Add support for Go 1.15 (#1619)
86+
- Add Go 1.14 as the minimum supported version of Golang (#1621)
87+
- Contributors (alphabetical order):
88+
- 10gic
89+
- Andrew Tugarinov
90+
- Anirudha Bose
91+
- Appelberg-s
92+
- Armando Ochoa
93+
- Aurèle Oulès
94+
- Calvin Kim
95+
- Christian Lehmann
96+
- Conner Fromknecht
97+
- Dan Cline
98+
- David Mazary
99+
- Elliott Minns
100+
- Federico Bond
101+
- Friedger Müffke
102+
- Gustavo Chain
103+
- Hanjun Kim
104+
- Henry Fisher
105+
- Iskander Sharipov
106+
- Jake Sylvestre
107+
- Johan T. Halseth
108+
- John C. Vernaleo
109+
- Liran Sharir
110+
- Mikael Lindlof
111+
- Olaoluwa Osuntokun
112+
- Oliver Gugger
113+
- Rjected
114+
- Steven Kreuzer
115+
- Torkel Rogstad
116+
- Tristyn
117+
- Victor Lavaud
118+
- Vinayak Borkar
119+
- Wilmer Paulino
120+
- Yaacov Akiba Slama
121+
- ebiiim
122+
- ipriver
123+
- wakiyamap
124+
- yyforyongyu
125+
126+
Changes in 0.21.0 (Thu Aug 27 2020)
127+
- Network-related changes:
128+
- Handle notfound messages from peers in netsync package (#1603)
129+
- RPC changes:
130+
- Add compatibility for getblock RPC changes in bitcoind 0.15.0 (#1529)
131+
- Add new optional Params field to rpcclient.ConnConfig (#1467)
132+
- Add new error code ErrRPCInWarmup in btcjson (#1541)
133+
- Add compatibility for changes to getmempoolentry response in bitcoind
134+
0.19.0 (#1524)
135+
- Add rpcclient methods for estimatesmartfee and generatetoaddress
136+
commands (#1500)
137+
- Add rpcclient method for getblockstats command (#1500)
138+
- Parse serialized transaction from createrawtransaction command using
139+
both segwit, and legacy format (#1502)
140+
- Support cookie-based authentication in rpcclient (#1460)
141+
- Add rpcclient method for getchaintxstats command (#1571)
142+
- Add rpcclient method for fundrawtransaction command (#1553)
143+
- Add rpcclient method for getbalances command (#1595)
144+
- Add new method rpcclient.GetTransactionWatchOnly (#1592)
145+
- Crypto changes:
146+
- Fix panic in fieldVal.SetByteSlice when called with large values, and
147+
improve the method to be 35% faster (#1602)
148+
- btcctl changes:
149+
- Add -regtest mode to btcctl (#1556)
150+
- Misc changes:
151+
- Fix a bug due to a deadlock in connmgr's dynamic ban scoring (#1509)
152+
- Add blockchain.NewUtxoEntry() to directly create entries for
153+
UtxoViewpoint (#1588)
154+
- Replace LRU cache implementation in peer package with a generic one
155+
from decred/dcrd (#1599)
156+
- Contributors (alphabetical order):
157+
- Anirudha Bose
158+
- Antonin Hildebrand
159+
- Dan Cline
160+
- Daniel McNally
161+
- David Hill
162+
- Federico Bond
163+
- George Tankersley
164+
- Henry
165+
- Henry Harder
166+
- Iskander Sharipov
167+
- Ivan Kuznetsov
168+
- Jake Sylvestre
169+
- Javed Khan
170+
- JeremyRand
171+
- Jin
172+
- John C. Vernaleo
173+
- Kulpreet Singh
174+
- Mikael Lindlof
175+
- Murray Nesbitt
176+
- Nisen
177+
- Olaoluwa Osuntokun
178+
- Oliver Gugger
179+
- Steven Roose
180+
- Torkel Rogstad
181+
- Tyler Chambers
182+
- Wilmer Paulino
183+
- Yash Bhutwala
184+
- adiabat
185+
- jalavosus
186+
- mohanson
187+
- qqjettkgjzhxmwj
188+
- qshuai
189+
- shuai.qi
190+
- tpkeeper
191+
192+
Changes in v0.20.1 (Wed Nov 13 2019)
193+
- RPC changes:
194+
- Add compatibility for bitcoind v0.19.0 in rpcclient and btcjson
195+
packages (#1484)
196+
- Contributors (alphabetical order):
197+
- Eugene Zeigel
198+
- Olaoluwa Osuntokun
199+
- Wilmer Paulino
200+
201+
Changes in v0.20.0 (Tue Oct 15 2019)
202+
- Significant changes made since 0.12.0. See git log or refer to release
203+
notes on GitHub for full details.
204+
- Contributors (alphabetical order):
205+
- Albert Puigsech Galicia
206+
- Alex Akselrod
207+
- Alex Bosworth
208+
- Alex Manuskin
209+
- Alok Menghrajani
210+
- Anatoli Babenia
211+
- Andy Weidenbaum
212+
- Calvin McAnarney
213+
- Chris Martin
214+
- Chris Pacia
215+
- Chris Shepherd
216+
- Conner Fromknecht
217+
- Craig Sturdy
218+
- Cédric Félizard
219+
- Daniel Krawisz
220+
- Daniel Martí
221+
- Daniel McNally
222+
- Dario Nieuwenhuis
223+
- Dave Collins
224+
- David Hill
225+
- David de Kloet
226+
- GeertJohan
227+
- Grace Noah
228+
- Gregory Trubetskoy
229+
- Hector Jusforgues
230+
- Iskander (Alex) Sharipov
231+
- Janus Troelsen
232+
- Jasper
233+
- Javed Khan
234+
- Jeremiah Goyette
235+
- Jim Posen
236+
- Jimmy Song
237+
- Johan T. Halseth
238+
- John C. Vernaleo
239+
- Jonathan Gillham
240+
- Josh Rickmar
241+
- Jon Underwood
242+
- Jonathan Zeppettini
243+
- Jouke Hofman
244+
- Julian Meyer
245+
- Kai
246+
- Kamil Slowikowski
247+
- Kefkius
248+
- Leonardo Lazzaro
249+
- Marco Peereboom
250+
- Marko Bencun
251+
- Mawueli Kofi Adzoe
252+
- Michail Kargakis
253+
- Mitchell Paull
254+
- Nathan Bass
255+
- Nicola 'tekNico' Larosa
256+
- Olaoluwa Osuntokun
257+
- Pedro Martelletto
258+
- Ricardo Velhote
259+
- Roei Erez
260+
- Ruben de Vries
261+
- Rune T. Aune
262+
- Sad Pencil
263+
- Shuai Qi
264+
- Steven Roose
265+
- Tadge Dryja
266+
- Tibor Bősze
267+
- Tomás Senart
268+
- Tzu-Jung Lee
269+
- Vadym Popov
270+
- Waldir Pimenta
271+
- Wilmer Paulino
272+
- benma
273+
- danda
274+
- dskloet
275+
- esemplastic
276+
- jadeblaquiere
277+
- nakagawa
278+
- preminem
279+
- qshuai
280+
6281
Changes in 0.12.0 (Fri Nov 20 2015)
7282
- Protocol and network related changes:
8283
- Add a new checkpoint at block height 382320 (#555)

0 commit comments

Comments
 (0)