File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 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