Increase retry count on solana transaction attempt

This commit is contained in:
Ivan Grachev 2022-05-04 01:47:07 +03:00
parent 1df074b0e2
commit 57c3ba0c6f

View File

@ -86,7 +86,7 @@ class Solana {
case .blockhashNotFound:
self?.updateBlockhash(message: message) { updatedMessage in
if let updatedMessage = updatedMessage {
self?.signAndSendTransaction(message: updatedMessage, options: options, completion: completion)
self?.signAndSendTransaction(retryCount: retryCount + 1, message: updatedMessage, options: options, completion: completion)
} else {
completion(.failure(.unknown))
}