Skip to content

Commit 85ac921

Browse files
committed
slight fix
1 parent cfb807a commit 85ac921

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/solana/rpc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func (c *Client) RPCGetBlockByHeight(ctx context.Context, height uint64) (*rpc.G
6969
continue
7070
}
7171
if err != nil {
72-
if strings.Contains(err.Error(), "Block not available for slot") {
72+
errStr := err.Error()
73+
if strings.Contains(errStr, "Block not available for slot") || strings.Contains(errStr, "Block status not yet available for slot") {
7374
time.Sleep(1 * time.Second)
7475
continue
7576
}

0 commit comments

Comments
 (0)