Skip to content

Commit

Permalink
optimize version check
Browse files Browse the repository at this point in the history
  • Loading branch information
asilenced committed Feb 25, 2022
1 parent d6735e0 commit 1041061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/solana/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (l *listener) getDepositEventsForBlock(untilSignature string) error {

}
versionRes, err := rpcClient.GetVersion(context.Background())
if err != nil || len(versionRes.SolanaCore) == 0 {
if err != nil || len(versionRes.SolanaCore) < 3 {
retry++
time.Sleep(waitTime)
continue
Expand Down

0 comments on commit 1041061

Please sign in to comment.