Skip to content

Commit b124006

Browse files
authored
Merge pull request #85 from starius/lnd-v0.17.0-final
multi: bump to lnd version v0.17.0-beta
2 parents 04a4354 + 4f083e1 commit b124006

File tree

10 files changed

+145
-135
lines changed

10 files changed

+145
-135
lines changed

.golangci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ linters-settings:
1919
staticcheck:
2020
go: "1.18"
2121
checks: ["-SA1019"]
22+
gomoddirectives:
23+
replace-allow-list:
24+
# See go.mod for the explanation why these are needed.
25+
- google.golang.org/protobuf
26+
2227

2328
linters:
2429
enable-all: true
@@ -63,4 +68,4 @@ issues:
6368
exclude-rules:
6469
- path: cmd/chantools
6570
linters:
66-
- lll
71+
- lll

doc/chantools_deletepayments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If only the failed payments should be deleted (and not the successful ones), the
1010

1111
CAUTION: Running this command will make it impossible to use the channel DB
1212
with an older version of lnd. Downgrading is not possible and you'll need to
13-
run lnd v0.16.0-beta or later after using this command!'
13+
run lnd v0.17.0-beta or later after using this command!'
1414

1515
```
1616
chantools deletepayments [flags]

doc/chantools_dropchannelgraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ without removing any other data.
1212

1313
CAUTION: Running this command will make it impossible to use the channel DB
1414
with an older version of lnd. Downgrading is not possible and you'll need to
15-
run lnd v0.16.0-beta or later after using this command!'
15+
run lnd v0.17.0-beta or later after using this command!'
1616

1717
```
1818
chantools dropchannelgraph [flags]

doc/chantools_dropgraphzombies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ be helpful to fix a graph that is out of sync with the network.
1212

1313
CAUTION: Running this command will make it impossible to use the channel DB
1414
with an older version of lnd. Downgrading is not possible and you'll need to
15-
run lnd v0.16.0-beta or later after using this command!'
15+
run lnd v0.17.0-beta or later after using this command!'
1616

1717
```
1818
chantools dropgraphzombies [flags]

doc/chantools_migratedb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ needs to read the database content.
1111

1212
CAUTION: Running this command will make it impossible to use the channel DB
1313
with an older version of lnd. Downgrading is not possible and you'll need to
14-
run lnd v0.16.0-beta or later after using this command!'
14+
run lnd v0.17.0-beta or later after using this command!'
1515

1616
```
1717
chantools migratedb [flags]

doc/chantools_removechannel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ channel was never confirmed on chain!
1111

1212
CAUTION: Running this command will make it impossible to use the channel DB
1313
with an older version of lnd. Downgrading is not possible and you'll need to
14-
run lnd v0.16.0-beta or later after using this command!
14+
run lnd v0.17.0-beta or later after using this command!
1515

1616
```
1717
chantools removechannel [flags]

dump/dump.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func CollectDebugInfo(channel *channeldb.OpenChannel,
263263
return nil, err
264264
}
265265

266-
toLocalPkScript, err := txscript.ParsePkScript(toLocalScript.PkScript)
266+
toLocalPkScript, err := txscript.ParsePkScript(toLocalScript.PkScript())
267267
if err != nil {
268268
return nil, err
269269
}
@@ -272,7 +272,7 @@ func CollectDebugInfo(channel *channeldb.OpenChannel,
272272
return nil, err
273273
}
274274

275-
toRemotePkScript, err := txscript.ParsePkScript(toRemoteScript.PkScript)
275+
toRemotePkScript, err := txscript.ParsePkScript(toRemoteScript.PkScript())
276276
if err != nil {
277277
return nil, err
278278
}
@@ -282,10 +282,12 @@ func CollectDebugInfo(channel *channeldb.OpenChannel,
282282
}
283283

284284
return &ChannelDebugInfo{
285-
ToLocalScript: hex.EncodeToString(toLocalScript.WitnessScript),
286-
ToLocalAddr: toLocalAddr.String(),
285+
ToLocalScript: hex.EncodeToString(
286+
toLocalScript.WitnessScriptToSign(),
287+
),
288+
ToLocalAddr: toLocalAddr.String(),
287289
ToRemoteScript: hex.EncodeToString(
288-
toRemoteScript.WitnessScript,
290+
toRemoteScript.WitnessScriptToSign(),
289291
),
290292
ToRemoteAddr: toRemoteAddr.String(),
291293
}, nil

go.mod

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module github.com/lightninglabs/chantools
33
go 1.19
44

55
require (
6-
github.com/btcsuite/btcd v0.23.5-0.20230125025938-be056b0a0b2f
6+
github.com/btcsuite/btcd v0.23.5-0.20230905170901-80f5a0ffdf36
77
github.com/btcsuite/btcd/btcec/v2 v2.3.2
8-
github.com/btcsuite/btcd/btcutil v1.1.3
9-
github.com/btcsuite/btcd/btcutil/psbt v1.1.5
8+
github.com/btcsuite/btcd/btcutil v1.1.4-0.20230904040416-d4f519f5dc05
9+
github.com/btcsuite/btcd/btcutil/psbt v1.1.8
1010
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2
1111
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
12-
github.com/btcsuite/btcwallet v0.16.7
12+
github.com/btcsuite/btcwallet v0.16.10-0.20230804184612-07be54bc22cf
1313
github.com/btcsuite/btcwallet/wallet/txrules v1.2.0
1414
github.com/btcsuite/btcwallet/walletdb v1.4.0
1515
github.com/coreos/bbolt v1.3.3
@@ -23,14 +23,14 @@ require (
2323
// commands that touch the channel DB and has an impact on the DB schema.
2424
// NOTE: When updating this version, make sure to also update the string in
2525
// cmd/chantools/root.go.
26-
github.com/lightningnetwork/lnd v0.16.0-beta
27-
github.com/lightningnetwork/lnd/kvdb v1.4.1
28-
github.com/lightningnetwork/lnd/queue v1.1.0
29-
github.com/lightningnetwork/lnd/ticker v1.1.0
30-
github.com/lightningnetwork/lnd/tor v1.1.0
26+
github.com/lightningnetwork/lnd v0.17.0-beta
27+
github.com/lightningnetwork/lnd/kvdb v1.4.4
28+
github.com/lightningnetwork/lnd/queue v1.1.1
29+
github.com/lightningnetwork/lnd/ticker v1.1.1
30+
github.com/lightningnetwork/lnd/tor v1.1.2
3131
github.com/spf13/cobra v1.1.3
32-
github.com/stretchr/testify v1.8.1
33-
go.etcd.io/bbolt v1.3.6
32+
github.com/stretchr/testify v1.8.2
33+
go.etcd.io/bbolt v1.3.7
3434
golang.org/x/crypto v0.14.0
3535
golang.org/x/oauth2 v0.4.0
3636
)
@@ -47,7 +47,7 @@ require (
4747
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
4848
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
4949
github.com/btcsuite/winsvc v1.0.0 // indirect
50-
github.com/cenkalti/backoff/v4 v4.1.1 // indirect
50+
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
5151
github.com/cespare/xxhash/v2 v2.2.0 // indirect
5252
github.com/coreos/go-semver v0.3.0 // indirect
5353
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
@@ -73,13 +73,14 @@ require (
7373
github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 // indirect
7474
github.com/inconshreveable/mousetrap v1.0.0 // indirect
7575
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
76-
github.com/jackc/pgconn v1.10.0 // indirect
76+
github.com/jackc/pgconn v1.14.0 // indirect
77+
github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa // indirect
7778
github.com/jackc/pgio v1.0.0 // indirect
7879
github.com/jackc/pgpassfile v1.0.0 // indirect
79-
github.com/jackc/pgproto3/v2 v2.1.1 // indirect
80-
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
81-
github.com/jackc/pgtype v1.8.1 // indirect
82-
github.com/jackc/pgx/v4 v4.13.0 // indirect
80+
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
81+
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
82+
github.com/jackc/pgtype v1.14.0 // indirect
83+
github.com/jackc/pgx/v4 v4.18.1 // indirect
8384
github.com/jessevdk/go-flags v1.4.0 // indirect
8485
github.com/jonboulle/clockwork v0.2.2 // indirect
8586
github.com/jrick/logrotate v1.0.0 // indirect
@@ -94,13 +95,13 @@ require (
9495
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf // indirect
9596
github.com/lightninglabs/lndclient v0.16.0-10 // indirect
9697
github.com/lightninglabs/loop/swapserverrpc v1.0.4 // indirect
97-
github.com/lightninglabs/neutrino v0.15.0 // indirect
98+
github.com/lightninglabs/neutrino v0.16.0 // indirect
9899
github.com/lightninglabs/neutrino/cache v1.1.1 // indirect
99100
github.com/lightninglabs/pool/auctioneerrpc v1.0.7 // indirect
100-
github.com/lightningnetwork/lightning-onion v1.2.1-0.20221202012345-ca23184850a1 // indirect
101-
github.com/lightningnetwork/lnd/clock v1.1.0 // indirect
102-
github.com/lightningnetwork/lnd/healthcheck v1.2.2 // indirect
103-
github.com/lightningnetwork/lnd/tlv v1.1.0 // indirect
101+
github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f // indirect
102+
github.com/lightningnetwork/lnd/clock v1.1.1 // indirect
103+
github.com/lightningnetwork/lnd/healthcheck v1.2.3 // indirect
104+
github.com/lightningnetwork/lnd/tlv v1.1.1 // indirect
104105
github.com/ltcsuite/ltcd v0.0.0-20191228044241-92166e412499 // indirect
105106
github.com/mattn/go-isatty v0.0.16 // indirect
106107
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
@@ -119,13 +120,13 @@ require (
119120
github.com/rogpeppe/fastuuid v1.2.0 // indirect
120121
github.com/russross/blackfriday/v2 v2.0.1 // indirect
121122
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
122-
github.com/sirupsen/logrus v1.7.0 // indirect
123+
github.com/sirupsen/logrus v1.9.2 // indirect
123124
github.com/soheilhy/cmux v0.1.5 // indirect
124125
github.com/spf13/pflag v1.0.5 // indirect
125126
github.com/stretchr/objx v0.5.0 // indirect
126127
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
127128
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect
128-
github.com/ulikunitz/xz v0.5.10 // indirect
129+
github.com/ulikunitz/xz v0.5.11 // indirect
129130
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
130131
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
131132
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec // indirect
@@ -146,19 +147,19 @@ require (
146147
go.uber.org/atomic v1.7.0 // indirect
147148
go.uber.org/multierr v1.6.0 // indirect
148149
go.uber.org/zap v1.17.0 // indirect
149-
golang.org/x/exp v0.0.0-20221111094246-ab4555d3164f // indirect
150-
golang.org/x/mod v0.8.0 // indirect
151-
golang.org/x/net v0.17.0 // indirect
152-
golang.org/x/sync v0.1.0 // indirect
150+
golang.org/x/exp v0.0.0-20230315142452-642cacee5cc0 // indirect
151+
golang.org/x/mod v0.10.0 // indirect
152+
golang.org/x/net v0.10.0 // indirect
153+
golang.org/x/sync v0.2.0 // indirect
153154
golang.org/x/sys v0.13.0 // indirect
154155
golang.org/x/term v0.13.0 // indirect
155156
golang.org/x/text v0.13.0 // indirect
156-
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
157-
golang.org/x/tools v0.6.0 // indirect
157+
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
158+
golang.org/x/tools v0.9.1 // indirect
158159
google.golang.org/appengine v1.6.7 // indirect
159160
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
160161
google.golang.org/grpc v1.53.0 // indirect
161-
google.golang.org/protobuf v1.28.1 // indirect
162+
google.golang.org/protobuf v1.30.0 // indirect
162163
gopkg.in/errgo.v1 v1.0.1 // indirect
163164
gopkg.in/macaroon-bakery.v2 v2.0.1 // indirect
164165
gopkg.in/macaroon.v2 v2.1.0 // indirect
@@ -178,3 +179,8 @@ require (
178179
nhooyr.io/websocket v1.8.7 // indirect
179180
sigs.k8s.io/yaml v1.2.0 // indirect
180181
)
182+
183+
// We want to format raw bytes as hex instead of base64. The forked version
184+
// allows us to specify that as an option. This is required for the
185+
// taproot-assets dependency to function properly.
186+
replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display

0 commit comments

Comments
 (0)