Skip to content

Commit 7436d23

Browse files
build(deps): bump github.com/utxorpc/go-codegen from 0.16.0 to 0.17.0 (#428)
* build(deps): bump github.com/utxorpc/go-codegen from 0.16.0 to 0.17.0 Bumps [github.com/utxorpc/go-codegen](https://github.com/utxorpc/go-codegen) from 0.16.0 to 0.17.0. - [Release notes](https://github.com/utxorpc/go-codegen/releases) - [Commits](utxorpc/go-codegen@v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: github.com/utxorpc/go-codegen dependency-version: 0.17.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix: update Index->Slot for utxorpc/spec 0.17.0 Signed-off-by: Chris Gianelloni <[email protected]> * ci(golangci-lint): disable noctx temporarily Signed-off-by: Chris Gianelloni <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Chris Gianelloni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Gianelloni <[email protected]>
1 parent 70b6083 commit 7436d23

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
229229
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
230230
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
231231
github.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=
234234
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
235235
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
236236
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=

internal/utxorpc/sync.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)