Skip to content

Commit bcdc5ac

Browse files
committed
slight fix
1 parent cddd160 commit bcdc5ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

solana/rpc.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ func (node *Node) SendTransactionUtilConfirm(ctx context.Context, tx *solana.Tra
8181
continue
8282
}
8383
// retry when observer send tx without nonce account
84-
if strings.Contains(sendError.Error(), "Blockhash not found") && call == nil {
85-
retry -= 1
84+
if strings.Contains(sendError.Error(), "Blockhash not found") {
85+
if call == nil {
86+
retry -= 1
87+
}
8688
if retry > 0 {
8789
time.Sleep(500 * time.Millisecond)
8890
continue

0 commit comments

Comments
 (0)