Skip to content

Commit e7948a9

Browse files
committed
fix: update Index->Slot for utxorpc/spec 0.17.0
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent a532a35 commit e7948a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)