fix: retry transactions on AccountInUse errors

This commit is contained in:
Michael Vines
2018-10-23 13:10:08 -07:00
parent 96c685eb5d
commit 90c9df15ef
3 changed files with 38 additions and 24 deletions

View File

@@ -41,7 +41,11 @@ declare module '@solana/web3.js' {
userdata: Buffer,
}
declare export type SignatureStatus = 'Confirmed' | 'SignatureNotFound' | 'ProgramRuntimeError' | 'GenericFailure';
declare export type SignatureStatus = 'Confirmed'
| 'AccountInUse'
| 'SignatureNotFound'
| 'ProgramRuntimeError'
| 'GenericFailure';
declare export class Connection {
constructor(endpoint: string): Connection;