Skip to content

Commit e252652

Browse files
committed
routing: bump btcwallet version and increase logs.
1 parent 13aa7f9 commit e252652

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

go.mod

+6
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,9 @@ replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-d
213213
go 1.19
214214

215215
retract v0.0.2
216+
217+
// replace github.com/lightninglabs/neutrino v0.16.0 => /Users/ziggie-pro/working_freetime/neutrino
218+
219+
replace github.com/lightninglabs/neutrino v0.16.0 => github.com/ziggie1984/neutrino v0.15.1-0.20231213184926-ca5f91e88713
220+
221+
replace github.com/btcsuite/btcwallet v0.16.10-0.20231129183218-5df09dd43358 => github.com/ziggie1984/btcwallet v0.14.1-0.20231213185304-7f7ebd14e3d9

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2/go.mod h1:7SFka0XMvUgj3hfZtyd
9595
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo=
9696
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
9797
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
98-
github.com/btcsuite/btcwallet v0.16.10-0.20231129183218-5df09dd43358 h1:lZUSo6TISHUJQxpn/AniW5gqaN1iRNS87SDWvV3AHfg=
99-
github.com/btcsuite/btcwallet v0.16.10-0.20231129183218-5df09dd43358/go.mod h1:WSKhOJWUmUOHKCKEzdt+jWAHFAE/t4RqVbCwL2pEdiU=
10098
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.2 h1:etuLgGEojecsDOYTII8rYiGHjGyV5xTqsXi+ZQ715UU=
10199
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.2/go.mod h1:Zpk/LOb2sKqwP2lmHjaZT9AdaKsHPSbNLm2Uql5IQ/0=
102100
github.com/btcsuite/btcwallet/wallet/txrules v1.2.0 h1:BtEN5Empw62/RVnZ0VcJaVtVlBijnLlJY+dwjAye2Bg=
@@ -436,8 +434,6 @@ github.com/lib/pq v1.10.3 h1:v9QZf2Sn6AmjXtQeFpdoq/eaNtYP6IN+7lcrygsIAtg=
436434
github.com/lib/pq v1.10.3/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
437435
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc=
438436
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
439-
github.com/lightninglabs/neutrino v0.16.0 h1:YNTQG32fPR/Zg0vvJVI65OBH8l3U18LSXXtX91hx0q0=
440-
github.com/lightninglabs/neutrino v0.16.0/go.mod h1:x3OmY2wsA18+Kc3TSV2QpSUewOCiscw2mKpXgZv2kZk=
441437
github.com/lightninglabs/neutrino/cache v1.1.1 h1:TllWOSlkABhpgbWJfzsrdUaDH2fBy/54VSIB4vVqV8M=
442438
github.com/lightninglabs/neutrino/cache v1.1.1/go.mod h1:XJNcgdOw1LQnanGjw8Vj44CvguYA25IMKjWFZczwZuo=
443439
github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display h1:pRdza2wleRN1L2fJXd6ZoQ9ZegVFTAb2bOQfruJPKcY=
@@ -635,6 +631,10 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
635631
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
636632
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
637633
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
634+
github.com/ziggie1984/btcwallet v0.14.1-0.20231213185304-7f7ebd14e3d9 h1:C6Ace1TNb9C5Mp7R0NUJ8AbMDy8ngCPyVj2gKe+L5uE=
635+
github.com/ziggie1984/btcwallet v0.14.1-0.20231213185304-7f7ebd14e3d9/go.mod h1:1CBJ4adW5Arj8RKwqCqRECpL31jiGi0n5VzxGS3EscI=
636+
github.com/ziggie1984/neutrino v0.15.1-0.20231213184926-ca5f91e88713 h1:gAm/ee+gV+p6w5oP6ryrNL3PrTlbxdXOTVecE+djIb8=
637+
github.com/ziggie1984/neutrino v0.15.1-0.20231213184926-ca5f91e88713/go.mod h1:x3OmY2wsA18+Kc3TSV2QpSUewOCiscw2mKpXgZv2kZk=
638638
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec h1:FpfFs4EhNehiVfzQttTuxanPIT43FtkkCFypIod8LHo=
639639
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec/go.mod h1:BZ1RAoRPbCxum9Grlv5aeksu2H8BiKehBYooU2LFiOQ=
640640
go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=

routing/router.go

+7
Original file line numberDiff line numberDiff line change
@@ -1807,11 +1807,18 @@ func (r *ChannelRouter) fetchFundingTx(
18071807
if err != nil {
18081808
return nil, err
18091809
}
1810+
1811+
log.Infof("Fetching block with hash=%v for short chan_id=%v(%v)",
1812+
blockHash, chanID, chanID.ToUint64())
1813+
18101814
fundingBlock, err := r.cfg.Chain.GetBlock(blockHash)
18111815
if err != nil {
18121816
return nil, err
18131817
}
18141818

1819+
log.Infof("Successfully fetched block with hash=%v for short "+
1820+
"chan_id=%v(%v)", blockHash, chanID, chanID.ToUint64())
1821+
18151822
// As a sanity check, ensure that the advertised transaction index is
18161823
// within the bounds of the total number of transactions within a
18171824
// block.

0 commit comments

Comments
 (0)