Skip to content

Commit 0cc5d53

Browse files
committed
rm Hash from getLatestLPBlock
1 parent c2ac085 commit 0cc5d53

File tree

5 files changed

+2
-20
lines changed

5 files changed

+2
-20
lines changed

pkg/chains/solana/solana.pb.go

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/chains/solana/solana.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,5 +475,4 @@ message UnregisterLogTrackingReply {}
475475
// latest block processed by lp
476476
message GetLatestLPBlockReply {
477477
uint64 slot = 1; // block slot
478-
bytes hash = 2; // 32 bytes block hash
479478
}

pkg/loop/internal/relayer/solana.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,9 @@ func (sc *SolClient) GetLatestLPBlock(ctx context.Context) (*solana.LPBlock, err
3030
if err != nil {
3131
return nil, net.WrapRPCErr(err)
3232
}
33-
hash, err := solpb.ConvertHashFromProto(resp.Hash)
34-
if err != nil {
35-
return nil, net.WrapRPCErr(err)
36-
}
3733

3834
return &solana.LPBlock{
3935
Slot: resp.GetSlot(),
40-
Hash: hash,
4136
}, nil
4237
}
4338

@@ -241,7 +236,6 @@ func (s *solServer) GetLatestLPBlock(ctx context.Context, _ *emptypb.Empty) (*so
241236
}
242237

243238
return &solpb.GetLatestLPBlockReply{
244-
Hash: dResp.Hash[:],
245239
Slot: dResp.Slot,
246240
}, nil
247241
}

pkg/loop/internal/relayerset/solana.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ func (ss *solServer) GetLatestLPBlock(ctx context.Context, _ *emptypb.Empty) (*s
9999
}
100100

101101
return &solpb.GetLatestLPBlockReply{
102-
Hash: dResp.Hash[:],
103102
Slot: dResp.Slot,
104103
}, nil
105104
}

pkg/types/chains/solana/lp_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,4 @@ type Log struct {
161161

162162
type LPBlock struct {
163163
Slot uint64
164-
Hash Hash
165164
}

0 commit comments

Comments
 (0)