From eb485b93c4d8b4344666bfd0521cd9f555f7464f Mon Sep 17 00:00:00 2001 From: Ales Verbic Date: Sun, 29 Sep 2024 08:13:02 -0400 Subject: [PATCH] fix: followTip api call (#259) Signed-off-by: Ales Verbic --- internal/utxorpc/sync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/utxorpc/sync.go b/internal/utxorpc/sync.go index 3f2f42b..af8ca9a 100644 --- a/internal/utxorpc/sync.go +++ b/internal/utxorpc/sync.go @@ -191,9 +191,8 @@ func (s *chainSyncServiceServer) FollowTip( blockIdx := blockRef.GetIndex() blockHash := blockRef.GetHash() log.Printf("BlockRef: idx: %d, hash: %x", blockIdx, blockHash) - hash, _ := hex.DecodeString(string(blockHash)) slot := uint64(blockIdx) - point = ocommon.NewPoint(slot, hash) + point = ocommon.NewPoint(slot, blockHash) } } else { tip, _ := oConn.ChainSync().Client.GetCurrentTip()