Skip to content

Commit 8ec855d

Browse files
committed
mod+server: update to lnd v0.19.2-beta
1 parent cf2a5e5 commit 8ec855d

File tree

3 files changed

+27
-24
lines changed

3 files changed

+27
-24
lines changed

go.mod

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ require (
99
github.com/btcsuite/btcd/btcutil/psbt v1.1.10
1010
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
1111
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c
12-
github.com/btcsuite/btclog/v2 v2.0.1-0.20250110154127-3ae4bf1cb318
13-
github.com/btcsuite/btcwallet v0.16.13
12+
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084
13+
github.com/btcsuite/btcwallet v0.16.14
1414
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5
1515
github.com/btcsuite/btcwallet/wtxmgr v1.5.6
1616
github.com/caddyserver/certmagic v0.17.2
@@ -27,10 +27,11 @@ require (
2727
github.com/lib/pq v1.10.9
2828
github.com/lightninglabs/aperture v0.3.13-beta
2929
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.3
30-
github.com/lightninglabs/lndclient v0.19.0-7
30+
github.com/lightninglabs/lndclient v0.19.0-12
3131
github.com/lightninglabs/neutrino/cache v1.1.2
32-
github.com/lightninglabs/taproot-assets/taprpc v1.0.7
33-
github.com/lightningnetwork/lnd v0.19.0-beta
32+
// The commit cf2a5e5b corresponds to the tapd v0.6.0 tag.
33+
github.com/lightninglabs/taproot-assets/taprpc v1.0.8-0.20250617163017-cf2a5e5bb47c
34+
github.com/lightningnetwork/lnd v0.19.2-beta
3435
github.com/lightningnetwork/lnd/cert v1.2.2
3536
github.com/lightningnetwork/lnd/clock v1.1.1
3637
github.com/lightningnetwork/lnd/fn/v2 v2.0.8
@@ -88,7 +89,7 @@ require (
8889
github.com/fergusstrange/embedded-postgres v1.25.0 // indirect
8990
github.com/go-logr/logr v1.4.2 // indirect
9091
github.com/go-logr/stdr v1.2.2 // indirect
91-
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
92+
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
9293
github.com/goccy/go-yaml v1.15.23 // indirect
9394
github.com/gogo/protobuf v1.3.2 // indirect
9495
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,11 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtyd
666666
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
667667
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c h1:4HxD1lBUGUddhzgaNgrCPsFWd7cGYNpeFUgd9ZIgyM0=
668668
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c/go.mod h1:w7xnGOhwT3lmrS4H3b/D1XAXxvh+tbhUm8xeHN2y3TQ=
669-
github.com/btcsuite/btclog/v2 v2.0.1-0.20250110154127-3ae4bf1cb318 h1:oCjIcinPt7XQ644MP/22JcjYEC84qRc3bRBH0d7Hhd4=
670-
github.com/btcsuite/btclog/v2 v2.0.1-0.20250110154127-3ae4bf1cb318/go.mod h1:XItGUfVOxotJL8kkuk2Hj3EVow5KCugXl3wWfQ6K0AE=
669+
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084 h1:y3bvkt8ki0KX35eUEU8XShRHusz1S+55QwXUTmxn888=
670+
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084/go.mod h1:XItGUfVOxotJL8kkuk2Hj3EVow5KCugXl3wWfQ6K0AE=
671671
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
672-
github.com/btcsuite/btcwallet v0.16.13 h1:JGu+wrihQ0I00ODb3w92JtBPbrHxZhbcvU01O+e+lKw=
673-
github.com/btcsuite/btcwallet v0.16.13/go.mod h1:H6dfoZcWPonM2wbVsR2ZBY0PKNZKdQyLAmnX8vL9JFA=
672+
github.com/btcsuite/btcwallet v0.16.14 h1:CofysgmI1ednkLsXontAdBoXJkbiim7unXnFKhLLjnE=
673+
github.com/btcsuite/btcwallet v0.16.14/go.mod h1:H6dfoZcWPonM2wbVsR2ZBY0PKNZKdQyLAmnX8vL9JFA=
674674
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 h1:Rr0njWI3r341nhSPesKQ2JF+ugDSzdPoeckS75SeDZk=
675675
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5/go.mod h1:+tXJ3Ym0nlQc/iHSwW1qzjmPs3ev+UVWMbGgfV1OZqU=
676676
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 h1:YEO+Lx1ZJJAtdRrjuhXjWrYsmAk26wLTlNzxt2q0lhk=
@@ -843,8 +843,8 @@ github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GO
843843
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
844844
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
845845
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
846-
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
847-
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
846+
github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk=
847+
github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
848848
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0=
849849
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=
850850
github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=
@@ -1137,8 +1137,8 @@ github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.3 h1:NuDp6Z+QNM
11371137
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.3/go.mod h1:bDnEKRN1u13NFBuy/C+bFLhxA5bfd3clT25y76QY0AM=
11381138
github.com/lightninglabs/lightning-node-connect/mailbox v1.0.1 h1:RWmohykp3n/DTMWY8b18RNTEcLDf+KT/AZHKYdOObkM=
11391139
github.com/lightninglabs/lightning-node-connect/mailbox v1.0.1/go.mod h1:NYtNexZE9gO1eOeegTxmIW9fqanl7eZ9cOrE9yewSAk=
1140-
github.com/lightninglabs/lndclient v0.19.0-7 h1:8+wGQnO8KSUq9elzGLscBUGchID+bWvrpX2qCo+tU48=
1141-
github.com/lightninglabs/lndclient v0.19.0-7/go.mod h1:35d50tEMFxlJlKTZGYA6EdOllPsbxS4FUmEVbETUx+Q=
1140+
github.com/lightninglabs/lndclient v0.19.0-12 h1:aSIKfnvnHKiyFWppUGHJG5fn8VoF5WG5Lx958ksLmqs=
1141+
github.com/lightninglabs/lndclient v0.19.0-12/go.mod h1:cicoJY1AwZuRVXGD8Knp50TRT7TGBmw1k37uPQsGQiw=
11421142
github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2 h1:eFjp1dIB2BhhQp/THKrjLdlYuPugO9UU4kDqu91OX/Q=
11431143
github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2/go.mod h1:99BKpIi6ruaaXRM1A77eqZ+FWPQ3cfRa+ZVy5bmWMaY=
11441144
github.com/lightninglabs/neutrino v0.16.1 h1:5Kz4ToxncEVkpKC6fwUjXKtFKJhuxlG3sBB3MdJTJjs=
@@ -1149,8 +1149,8 @@ github.com/lightninglabs/protobuf-go-hex-display v1.34.2-hex-display h1:w7FM5LH9
11491149
github.com/lightninglabs/protobuf-go-hex-display v1.34.2-hex-display/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
11501150
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb h1:yfM05S8DXKhuCBp5qSMZdtSwvJ+GFzl94KbXMNB1JDY=
11511151
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb/go.mod h1:c0kvRShutpj3l6B9WtTsNTBUtjSmjZXbJd9ZBRQOSKI=
1152-
github.com/lightningnetwork/lnd v0.19.0-beta h1:/8i2UdARiEpI2iAmPoSDcwZSSEuWqXyfsMxz/mLGbdw=
1153-
github.com/lightningnetwork/lnd v0.19.0-beta/go.mod h1:hu6zo1zcznx7nViiFlJY8qGDwwGw5LNLdGJ7ICz5Ysc=
1152+
github.com/lightningnetwork/lnd v0.19.2-beta h1:3SKVrKYFY4IJLlrMf7cDzZcBeT+MxjI9Xy6YpY+EEX4=
1153+
github.com/lightningnetwork/lnd v0.19.2-beta/go.mod h1:+yKUfIGKKYRHGewgzQ6xi0S26DIfBiMv1zCdB3m6YxA=
11541154
github.com/lightningnetwork/lnd/cert v1.2.2 h1:71YK6hogeJtxSxw2teq3eGeuy4rHGKcFf0d0Uy4qBjI=
11551155
github.com/lightningnetwork/lnd/cert v1.2.2/go.mod h1:jQmFn/Ez4zhDgq2hnYSw8r35bqGVxViXhX6Cd7HXM6U=
11561156
github.com/lightningnetwork/lnd/clock v1.1.1 h1:OfR3/zcJd2RhH0RU+zX/77c0ZiOnIMsDIBjgjWdZgA0=

server.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939
"github.com/lightningnetwork/lnd/lnwire"
4040
"github.com/lightningnetwork/lnd/macaroons"
4141
"github.com/lightningnetwork/lnd/msgmux"
42+
"github.com/lightningnetwork/lnd/routing/route"
4243
"github.com/lightningnetwork/lnd/sweep"
4344
"github.com/lightningnetwork/lnd/tlv"
4445
"google.golang.org/grpc"
@@ -1020,13 +1021,14 @@ func (s *Server) ShouldHandleTraffic(cid lnwire.ShortChannelID,
10201021
// NOTE: This method is part of the routing.TlvTrafficShaper interface.
10211022
func (s *Server) PaymentBandwidth(fundingBlob, htlcBlob,
10221023
commitmentBlob lfn.Option[tlv.Blob], linkBandwidth,
1023-
htlcAmt lnwire.MilliSatoshi,
1024-
htlcView lnwallet.AuxHtlcView) (lnwire.MilliSatoshi, error) {
1024+
htlcAmt lnwire.MilliSatoshi, htlcView lnwallet.AuxHtlcView,
1025+
peer route.Vertex) (lnwire.MilliSatoshi, error) {
10251026

10261027
srvrLog.Debugf("PaymentBandwidth called, fundingBlob=%v, htlcBlob=%v, "+
1027-
"commitmentBlob=%v", lnutils.SpewLogClosure(fundingBlob),
1028+
"commitmentBlob=%v, peer=%x",
1029+
lnutils.SpewLogClosure(fundingBlob),
10281030
lnutils.SpewLogClosure(htlcBlob),
1029-
lnutils.SpewLogClosure(commitmentBlob))
1031+
lnutils.SpewLogClosure(commitmentBlob), peer[:])
10301032

10311033
if err := s.waitForReady(); err != nil {
10321034
return 0, err
@@ -1044,12 +1046,12 @@ func (s *Server) PaymentBandwidth(fundingBlob, htlcBlob,
10441046
//
10451047
// NOTE: This method is part of the routing.TlvTrafficShaper interface.
10461048
func (s *Server) ProduceHtlcExtraData(totalAmount lnwire.MilliSatoshi,
1047-
htlcCustomRecords lnwire.CustomRecords) (lnwire.MilliSatoshi,
1048-
lnwire.CustomRecords, error) {
1049+
htlcCustomRecords lnwire.CustomRecords,
1050+
peer route.Vertex) (lnwire.MilliSatoshi, lnwire.CustomRecords, error) {
10491051

10501052
srvrLog.Debugf("ProduceHtlcExtraData called, totalAmount=%d, "+
1051-
"htlcBlob=%v", totalAmount,
1052-
lnutils.SpewLogClosure(htlcCustomRecords))
1053+
"htlcBlob=%v, peer=%x", totalAmount,
1054+
lnutils.SpewLogClosure(htlcCustomRecords), peer[:])
10531055

10541056
if err := s.waitForReady(); err != nil {
10551057
return 0, nil, err

0 commit comments

Comments
 (0)