Skip to content

Commit 883705f

Browse files
committed
multi: update lnd version to v0.13.1-beta
1 parent 46d79f5 commit 883705f

File tree

10 files changed

+147
-61
lines changed

10 files changed

+147
-61
lines changed

cmd/chantools/deletepayments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If only the failed payments should be deleted (and not the successful ones), the
2525
2626
CAUTION: Running this command will make it impossible to use the channel DB
2727
with an older version of lnd. Downgrading is not possible and you'll need to
28-
run lnd v0.12.1-beta or later after using this command!'`,
28+
run lnd v0.13.1-beta or later after using this command!'`,
2929
Example: `chantools deletepayments --failedonly \
3030
--channeldb ~/.lnd/data/graph/mainnet/channel.db`,
3131
RunE: cc.Execute,

cmd/chantools/dropchannelgraph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ forcing the lnd node to do a full graph sync.
2929
3030
CAUTION: Running this command will make it impossible to use the channel DB
3131
with an older version of lnd. Downgrading is not possible and you'll need to
32-
run lnd v0.12.1-beta or later after using this command!'`,
32+
run lnd v0.13.1-beta or later after using this command!'`,
3333
Example: `chantools dropchannelgraph \
3434
--channeldb ~/.lnd/data/graph/mainnet/channel.db`,
3535
RunE: cc.Execute,

cmd/chantools/migratedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ needs to read the database content.
2525
2626
CAUTION: Running this command will make it impossible to use the channel DB
2727
with an older version of lnd. Downgrading is not possible and you'll need to
28-
run lnd v0.12.1-beta or later after using this command!'`,
28+
run lnd v0.13.1-beta or later after using this command!'`,
2929
Example: `chantools migratedb \
3030
--channeldb ~/.lnd/data/graph/mainnet/channel.db`,
3131
RunE: cc.Execute,

cmd/chantools/removechannel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ channel was never confirmed on chain!
3131
3232
CAUTION: Running this command will make it impossible to use the channel DB
3333
with an older version of lnd. Downgrading is not possible and you'll need to
34-
run lnd v0.12.1-beta or later after using this command!`,
34+
run lnd v0.13.1-beta or later after using this command!`,
3535
Example: `chantools removechannel \
3636
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
3737
--channel 3149764effbe82718b280de425277e5e7b245a4573aa4a0203ac12cee1c37816:0`,

cmd/chantools/root.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
const (
2828
defaultAPIURL = "https://blockstream.info/api"
29-
version = "0.8.6"
29+
version = "0.9.0"
3030
na = "n/a"
3131

3232
Commit = ""
@@ -37,7 +37,7 @@ var (
3737
Regtest bool
3838

3939
logWriter = build.NewRotatingLogWriter()
40-
log = build.NewSubLogger("CHAN", logWriter.GenSubLogger)
40+
log = build.NewSubLogger("CHAN", genSubLogger(logWriter))
4141
chainParams = &chaincfg.MainNetParams
4242
)
4343

@@ -270,12 +270,19 @@ func setupLogging() {
270270
}
271271
}
272272

273+
// genSubLogger creates a sub logger with an empty shutdown function.
274+
func genSubLogger(logWriter *build.RotatingLogWriter) func(string) btclog.Logger {
275+
return func(s string) btclog.Logger {
276+
return logWriter.GenSubLogger(s, func() {})
277+
}
278+
}
279+
273280
// addSubLogger is a helper method to conveniently create and register the
274281
// logger of one or more sub systems.
275282
func addSubLogger(subsystem string, useLoggers ...func(btclog.Logger)) {
276283
// Create and register just a single logger to prevent them from
277284
// overwriting each other internally.
278-
logger := build.NewSubLogger(subsystem, logWriter.GenSubLogger)
285+
logger := build.NewSubLogger(subsystem, genSubLogger(logWriter))
279286
setSubLogger(subsystem, logger, useLoggers...)
280287
}
281288

cmd/chantools/signrescuefunding.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func findLocalMultisigKey(multisigBranch *hdkeychain.ExtendedKey,
158158

159159
// Loop through the local multisig keys to find the target key.
160160
for index := uint32(0); index < MaxChannelLookup; index++ {
161-
currentKey, err := multisigBranch.Child(index)
161+
currentKey, err := multisigBranch.Derive(index)
162162
if err != nil {
163163
return nil, fmt.Errorf("error deriving child key: %v",
164164
err)

go.mod

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,37 @@ module github.com/guggero/chantools
33
require (
44
git.schwanenlied.me/yawning/bsaes.git v0.0.0-20190320102049-26d1add596b6 // indirect
55
github.com/Yawning/aez v0.0.0-20180408160647-ec7426b44926 // indirect
6-
github.com/btcsuite/btcd v0.21.0-beta.0.20201208033208-6bd4c64a54fa
6+
github.com/btcsuite/btcd v0.21.0-beta.0.20210513141527-ee5896bad5be
77
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
8-
github.com/btcsuite/btcutil v1.0.2
9-
github.com/btcsuite/btcutil/psbt v1.0.3-0.20200826194809-5f93e33af2b0
10-
github.com/btcsuite/btcwallet v0.11.1-0.20201207233335-415f37ff11a1
11-
github.com/btcsuite/btcwallet/walletdb v1.3.4
8+
github.com/btcsuite/btcutil v1.0.3-0.20210527170813-e2ba6805a890
9+
github.com/btcsuite/btcutil/psbt v1.0.3-0.20210527170813-e2ba6805a890
10+
github.com/btcsuite/btcwallet v0.12.1-0.20210519225359-6ab9b615576f
11+
github.com/btcsuite/btcwallet/walletdb v1.3.5
1212
github.com/coreos/bbolt v1.3.3
1313
github.com/davecgh/go-spew v1.1.1
1414
github.com/frankban/quicktest v1.11.2 // indirect
15-
github.com/fsnotify/fsnotify v1.4.9 // indirect
1615
github.com/gogo/protobuf v1.2.1
1716
github.com/google/go-cmp v0.5.3 // indirect
18-
github.com/lightningnetwork/lnd v0.12.1-beta
17+
github.com/lightningnetwork/lnd v0.13.1-beta
1918
github.com/ltcsuite/ltcd v0.0.0-20191228044241-92166e412499 // indirect
2019
github.com/miekg/dns v1.1.26 // indirect
2120
github.com/pkg/errors v0.9.1 // indirect
2221
github.com/spf13/cobra v1.1.1
23-
github.com/stretchr/testify v1.6.1
22+
github.com/stretchr/testify v1.7.0
2423
go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50
2524
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
26-
golang.org/x/net v0.0.0-20200202094626-16171245cfb2 // indirect
2725
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
28-
golang.org/x/sys v0.0.0-20200501145240-bc7a7d42d5c3 // indirect
2926
golang.org/x/text v0.3.4 // indirect
3027
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
3128
gopkg.in/yaml.v2 v2.4.0 // indirect
3229
)
3330

34-
replace github.com/lightningnetwork/lnd => github.com/guggero/lnd v0.11.0-beta.rc4.0.20210609102733-8d0a492ec962
31+
replace github.com/lightningnetwork/lnd => github.com/guggero/lnd v0.11.0-beta.rc4.0.20210726083410-a74ce5305eaa
32+
33+
replace github.com/lightningnetwork/lnd/kvdb => github.com/guggero/lnd/kvdb v0.0.0-20210726083410-a74ce5305eaa
34+
35+
// Fix incompatibility of etcd go.mod package.
36+
// See https://github.com/etcd-io/etcd/issues/11154
37+
replace go.etcd.io/etcd => go.etcd.io/etcd v0.5.0-alpha.5.0.20201125193152-8a03d2e9614b
3538

3639
go 1.13

0 commit comments

Comments
 (0)