Skip to content

Commit 013f770

Browse files
committed
fix SendTransactionUtilConfirm
1 parent 2337a82 commit 013f770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solana/rpc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ func (node *Node) SendTransactionUtilConfirm(ctx context.Context, tx *solana.Tra
6464
for {
6565
rpcTx, err := node.RPCGetTransaction(ctx, hash)
6666
if err != nil {
67-
return nil, fmt.Errorf("solana.RPCGetTransaction(%s) => %v", hash, err)
67+
logger.Printf("solana.RPCGetTransaction(%s) => %v", hash, err)
68+
time.Sleep(time.Second * 3)
6869
}
6970
if rpcTx != nil {
7071
if rpcTx.Meta.Err != nil {

0 commit comments

Comments
 (0)