Surface AccountInUse to JSON RPC users so they know to retry the transaction

This commit is contained in:
Michael Vines
2018-10-23 13:11:29 -07:00
parent 4f34822900
commit 7977b97227
3 changed files with 6 additions and 2 deletions

View File

@@ -168,6 +168,7 @@ events.
* `Confirmed` - Transaction was successful
* `SignatureNotFound` - Unknown transaction
* `ProgramRuntimeError` - An error occurred in the program that processed this Transaction
* `AccountInUse` - Another Transaction had a write lock one of the Accounts specified in this Transaction. The Transaction may succeed if retried
* `GenericFailure` - Some other error occurred. **Note**: In the future new Transaction statuses may be added to this list. It's safe to assume that all new statuses will be more specific error conditions that previously presented as `GenericFailure`
##### Example: