File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ linters:
2525 - musttag
2626 - nilerr
2727 - nilnesserr
28- - noctx
2928 - perfsprint
3029 - prealloc
3130 - protogetter
@@ -41,6 +40,7 @@ linters:
4140 - zerologlint
4241 disable :
4342 - depguard
43+ - noctx
4444 exclusions :
4545 generated : lax
4646 presets :
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ require (
1818 github.com/swaggo/files v1.0.1
1919 github.com/swaggo/gin-swagger v1.6.0
2020 github.com/swaggo/swag v1.16.4
21- github.com/utxorpc/go-codegen v0.16 .0
21+ github.com/utxorpc/go-codegen v0.17 .0
2222 go.uber.org/automaxprocs v1.6.0
2323 golang.org/x/net v0.42.0
2424 gopkg.in/yaml.v2 v2.4.0
Original file line number Diff line number Diff line change @@ -229,8 +229,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
229229github.com/twitchyliquid64/golang-asm v0.15.1 /go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08 =
230230github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE =
231231github.com/ugorji/go/codec v1.2.12 /go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg =
232- github.com/utxorpc/go-codegen v0.16 .0 h1:jPTyKtv2OI6Ms7U/goAYbaP6axAZ39vRmoWdjO/rkeM =
233- github.com/utxorpc/go-codegen v0.16 .0 /go.mod h1:2Nwq1md4HEcO2guvTpH45slGHO2aGRbiXKx73FM65ow =
232+ github.com/utxorpc/go-codegen v0.17 .0 h1:cJ7Df9r8Az39lveIcmzcRciIDc3UJFdMSmXg8IAtBPM =
233+ github.com/utxorpc/go-codegen v0.17 .0 /go.mod h1:LBVGFns4YAHMhy+Pc8tF5ExkU+N8Wm3srst4omKZy4g =
234234github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM =
235235github.com/x448/float16 v0.8.4 /go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg =
236236github.com/yuin/goldmark v1.4.13 /go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY =
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ func (s *chainSyncServiceServer) FetchBlock(
6262 var points []ocommon.Point
6363 if len (ref ) > 0 {
6464 for _ , blockRef := range ref {
65- blockIdx := blockRef .GetIndex ()
65+ blockIdx := blockRef .GetSlot ()
6666 blockHash := blockRef .GetHash ()
6767 slot := uint64 (blockIdx )
6868 point := ocommon .NewPoint (slot , blockHash )
@@ -129,7 +129,7 @@ func (s *chainSyncServiceServer) DumpHistory(
129129 if startToken != nil {
130130 log .Printf ("startToken != nil\n " )
131131 blockRef := startToken
132- blockIdx := blockRef .GetIndex ()
132+ blockIdx := blockRef .GetSlot ()
133133 blockHash := blockRef .GetHash ()
134134 slot := uint64 (blockIdx )
135135 startPoint = ocommon .NewPoint (slot , blockHash )
@@ -187,7 +187,7 @@ func (s *chainSyncServiceServer) FollowTip(
187187 var point ocommon.Point
188188 if len (intersect ) > 0 {
189189 for _ , blockRef := range intersect {
190- blockIdx := blockRef .GetIndex ()
190+ blockIdx := blockRef .GetSlot ()
191191 blockHash := blockRef .GetHash ()
192192 log .Printf ("BlockRef: idx: %d, hash: %x" , blockIdx , blockHash )
193193 slot := uint64 (blockIdx )
You can’t perform that action at this time.
0 commit comments