Skip to content

Commit 539d6ed

Browse files
authored
Merge pull request #112 from wpaulino/update-lnd-version
build: update lnd version to current master
2 parents e38b29d + 52eaeea commit 539d6ed

File tree

5 files changed

+24
-25
lines changed

5 files changed

+24
-25
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/google/go-cmp v0.3.1 // indirect
1111
github.com/grpc-ecosystem/grpc-gateway v1.10.0
1212
github.com/jessevdk/go-flags v1.4.0
13-
github.com/lightningnetwork/lnd v0.8.0-beta-rc3.0.20191025122959-1a0ab538d53c
13+
github.com/lightningnetwork/lnd v0.8.0-beta-rc3.0.20191115230031-4d7a151b4763
1414
github.com/lightningnetwork/lnd/queue v1.0.1
1515
github.com/urfave/cli v1.20.0
1616
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472 // indirect

go.sum

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24
1515
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
1616
github.com/btcsuite/btcd v0.0.0-20190629003639-c26ffa870fd8/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI=
1717
github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI=
18-
github.com/btcsuite/btcd v0.20.0-beta h1:DnZGUjFbRkpytojHWwy6nfUSA7vFrzWXDLpFNzt74ZA=
19-
github.com/btcsuite/btcd v0.20.0-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
2018
github.com/btcsuite/btcd v0.20.1-beta h1:Ik4hyJqN8Jfyv3S4AGBOmyouMsYE3EdYODkMbQjwPGw=
2119
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
2220
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo=
2321
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
2422
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d h1:yJzD/yFppdVCf6ApMkVy8cUxV0XrxdP9rVf6D87/Mng=
2523
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
26-
github.com/btcsuite/btcwallet v0.10.0 h1:fFZncfYJ7VByePTGttzJc3qfCyDzU95ucZYk0M912lU=
27-
github.com/btcsuite/btcwallet v0.10.0/go.mod h1:4TqBEuceheGNdeLNrelliLHJzmXauMM2vtWfuy1pFiM=
24+
github.com/btcsuite/btcwallet v0.11.0 h1:XhwqdhEchy5a0q6R+y3F82roD2hYycPCHovgNyJS08w=
25+
github.com/btcsuite/btcwallet v0.11.0/go.mod h1:qtPAohN1ioo0pvJt/j7bZM8ANBWlYWVCVFL0kkijs7s=
2826
github.com/btcsuite/btcwallet/wallet/txauthor v1.0.0 h1:KGHMW5sd7yDdDMkCZ/JpP0KltolFsQcB973brBnfj4c=
2927
github.com/btcsuite/btcwallet/wallet/txauthor v1.0.0/go.mod h1:VufDts7bd/zs3GV13f/lXc/0lXrPnvxD/NvmpG/FEKU=
3028
github.com/btcsuite/btcwallet/wallet/txrules v1.0.0 h1:2VsfS0sBedcM5KmDzRMT3+b6xobqWveZGvjb+jFez5w=
@@ -87,7 +85,7 @@ github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
8785
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
8886
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
8987
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
90-
github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw=
88+
github.com/grpc-ecosystem/grpc-gateway v1.8.6/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
9189
github.com/grpc-ecosystem/grpc-gateway v1.10.0 h1:yqx/nTDLC6pVrQ8fTaCeeeMJNbmt7HglUpysQATYXV4=
9290
github.com/grpc-ecosystem/grpc-gateway v1.10.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
9391
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
@@ -125,14 +123,15 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
125123
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
126124
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
127125
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
128-
github.com/lightninglabs/gozmq v0.0.0-20190710231225-cea2a031735d h1:tt8hwvxl6fksSfchjBGaWu+pnWJQfG1OWiCM20qOSAE=
129-
github.com/lightninglabs/gozmq v0.0.0-20190710231225-cea2a031735d/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
130-
github.com/lightninglabs/neutrino v0.10.0 h1:yWVy2cOCCXbKFdpYCE9vD1fWRJDd9FtGXhUws4l9RkU=
131-
github.com/lightninglabs/neutrino v0.10.0/go.mod h1:C3KhCMk1Mcx3j8v0qRVWM1Ow6rIJSvSPnUAq00ZNAfk=
126+
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc=
127+
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
128+
github.com/lightninglabs/neutrino v0.11.0 h1:lPpYFCtsfJX2W5zI4pWycPmbbBdr7zU+BafYdLoD6k0=
129+
github.com/lightninglabs/neutrino v0.11.0/go.mod h1:CuhF0iuzg9Sp2HO6ZgXgayviFTn1QHdSTJlMncK80wg=
132130
github.com/lightningnetwork/lightning-onion v0.0.0-20190909101754-850081b08b6a h1:GoWPN4i4jTKRxhVNh9a2vvBBO1Y2seiJB+SopUYoKyo=
133131
github.com/lightningnetwork/lightning-onion v0.0.0-20190909101754-850081b08b6a/go.mod h1:rigfi6Af/KqsF7Za0hOgcyq2PNH4AN70AaMRxcJkff4=
134-
github.com/lightningnetwork/lnd v0.8.0-beta-rc3.0.20191025122959-1a0ab538d53c h1:eZcbiUop12hTTVIjicfm85do4kftmJqAwGVWYPh6+Xo=
135-
github.com/lightningnetwork/lnd v0.8.0-beta-rc3.0.20191025122959-1a0ab538d53c/go.mod h1:nq06y2BDv7vwWeMmwgB7P3pT7/Uj7sGf5FzHISVD6t4=
132+
github.com/lightningnetwork/lnd v0.0.2 h1:actrQ68Mrj2atPV7A58FxPzP6Qjwvn0GqkxC9iC0Mlw=
133+
github.com/lightningnetwork/lnd v0.8.0-beta-rc3.0.20191115230031-4d7a151b4763 h1:Eit9hH737th2WwnnVhkuxyMqgXce6keztGTtbDMLJ80=
134+
github.com/lightningnetwork/lnd v0.8.0-beta-rc3.0.20191115230031-4d7a151b4763/go.mod h1:Z7DDVIgvMgyb/4+btLeiU++xt49T35PNunXGCvAaxiE=
136135
github.com/lightningnetwork/lnd/queue v1.0.1 h1:jzJKcTy3Nj5lQrooJ3aaw9Lau3I0IwvQR5sqtjdv2R0=
137136
github.com/lightningnetwork/lnd/queue v1.0.1/go.mod h1:vaQwexir73flPW43Mrm7JOgJHmcEFBWWSl9HlyASoms=
138137
github.com/lightningnetwork/lnd/ticker v1.0.0 h1:S1b60TEGoTtCe2A0yeB+ecoj/kkS4qpwh6l+AkQEZwU=

lndclient/walletkit_client.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/lightningnetwork/lnd/keychain"
1111
"github.com/lightningnetwork/lnd/lnrpc/signrpc"
1212
"github.com/lightningnetwork/lnd/lnrpc/walletrpc"
13-
"github.com/lightningnetwork/lnd/lnwallet"
13+
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
1414
"google.golang.org/grpc"
1515
)
1616

@@ -27,9 +27,9 @@ type WalletKitClient interface {
2727
PublishTransaction(ctx context.Context, tx *wire.MsgTx) error
2828

2929
SendOutputs(ctx context.Context, outputs []*wire.TxOut,
30-
feeRate lnwallet.SatPerKWeight) (*wire.MsgTx, error)
30+
feeRate chainfee.SatPerKWeight) (*wire.MsgTx, error)
3131

32-
EstimateFee(ctx context.Context, confTarget int32) (lnwallet.SatPerKWeight,
32+
EstimateFee(ctx context.Context, confTarget int32) (chainfee.SatPerKWeight,
3333
error)
3434
}
3535

@@ -141,7 +141,7 @@ func (m *walletKitClient) PublishTransaction(ctx context.Context,
141141
}
142142

143143
func (m *walletKitClient) SendOutputs(ctx context.Context,
144-
outputs []*wire.TxOut, feeRate lnwallet.SatPerKWeight) (
144+
outputs []*wire.TxOut, feeRate chainfee.SatPerKWeight) (
145145
*wire.MsgTx, error) {
146146

147147
rpcOutputs := make([]*signrpc.TxOut, len(outputs))
@@ -173,7 +173,7 @@ func (m *walletKitClient) SendOutputs(ctx context.Context,
173173
}
174174

175175
func (m *walletKitClient) EstimateFee(ctx context.Context, confTarget int32) (
176-
lnwallet.SatPerKWeight, error) {
176+
chainfee.SatPerKWeight, error) {
177177

178178
rpcCtx, cancel := context.WithTimeout(ctx, rpcTimeout)
179179
defer cancel()
@@ -186,5 +186,5 @@ func (m *walletKitClient) EstimateFee(ctx context.Context, confTarget int32) (
186186
return 0, err
187187
}
188188

189-
return lnwallet.SatPerKWeight(resp.SatPerKw), nil
189+
return chainfee.SatPerKWeight(resp.SatPerKw), nil
190190
}

test/lnd_services_mock.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/lightninglabs/loop/lndclient"
1111
"github.com/lightningnetwork/lnd/chainntnfs"
1212
"github.com/lightningnetwork/lnd/lntypes"
13-
"github.com/lightningnetwork/lnd/lnwallet"
13+
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
1414
"github.com/lightningnetwork/lnd/zpay32"
1515
)
1616

@@ -21,7 +21,7 @@ var testStartingHeight = int32(600)
2121
func NewMockLnd() *LndMockServices {
2222
lightningClient := &mockLightningClient{}
2323
walletKit := &mockWalletKit{
24-
feeEstimates: make(map[int32]lnwallet.SatPerKWeight),
24+
feeEstimates: make(map[int32]chainfee.SatPerKWeight),
2525
}
2626
chainNotifier := &mockChainNotifier{}
2727
signer := &mockSigner{}
@@ -201,7 +201,7 @@ func (s *LndMockServices) DecodeInvoice(request string) (*zpay32.Invoice,
201201
}
202202

203203
func (s *LndMockServices) SetFeeEstimate(confTarget int32,
204-
feeEstimate lnwallet.SatPerKWeight) {
204+
feeEstimate chainfee.SatPerKWeight) {
205205

206206
s.WalletKit.(*mockWalletKit).feeEstimates[confTarget] = feeEstimate
207207
}

test/walletkit_mock.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import (
1010
"github.com/btcsuite/btcutil"
1111
"github.com/lightninglabs/loop/lndclient"
1212
"github.com/lightningnetwork/lnd/keychain"
13-
"github.com/lightningnetwork/lnd/lnwallet"
13+
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
1414
)
1515

1616
type mockWalletKit struct {
1717
lnd *LndMockServices
1818
keyIndex int32
19-
feeEstimates map[int32]lnwallet.SatPerKWeight
19+
feeEstimates map[int32]chainfee.SatPerKWeight
2020
}
2121

2222
var _ lndclient.WalletKitClient = (*mockWalletKit)(nil)
@@ -65,7 +65,7 @@ func (m *mockWalletKit) PublishTransaction(ctx context.Context, tx *wire.MsgTx)
6565
}
6666

6767
func (m *mockWalletKit) SendOutputs(ctx context.Context, outputs []*wire.TxOut,
68-
feeRate lnwallet.SatPerKWeight) (*wire.MsgTx, error) {
68+
feeRate chainfee.SatPerKWeight) (*wire.MsgTx, error) {
6969

7070
var inputTxHash chainhash.Hash
7171

@@ -90,7 +90,7 @@ func (m *mockWalletKit) SendOutputs(ctx context.Context, outputs []*wire.TxOut,
9090
}
9191

9292
func (m *mockWalletKit) EstimateFee(ctx context.Context, confTarget int32) (
93-
lnwallet.SatPerKWeight, error) {
93+
chainfee.SatPerKWeight, error) {
9494

9595
if confTarget <= 1 {
9696
return 0, errors.New("conf target must be greater than 1")

0 commit comments

Comments
 (0)