mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 11:57:56 +00:00
wait_for_finalized behavior if the tx dropped, usurped or invalid (#897)
* consider dropped, invalid and usurped as finalized * test structure * unit tests * move tests to tx_progress file * integrate pr review comments * integrate pr review comments (including revert)
This commit is contained in:
+10
-1
@@ -119,11 +119,20 @@ pub enum TransactionError {
|
||||
/// The finality subscription expired (after ~512 blocks we give up if the
|
||||
/// block hasn't yet been finalized).
|
||||
#[error("The finality subscription expired")]
|
||||
FinalitySubscriptionTimeout,
|
||||
FinalityTimeout,
|
||||
/// The block hash that the transaction was added to could not be found.
|
||||
/// This is probably because the block was retracted before being finalized.
|
||||
#[error("The block containing the transaction can no longer be found (perhaps it was on a non-finalized fork?)")]
|
||||
BlockNotFound,
|
||||
/// The transaction was deemed invalid in the current chain state.
|
||||
#[error("The transaction is no longer valid")]
|
||||
Invalid,
|
||||
/// The transaction was replaced by a transaction with the same (sender, nonce) pair but with higher priority
|
||||
#[error("The transaction was replaced by a transaction with the same (sender, nonce) pair but with higher priority.")]
|
||||
Usurped,
|
||||
/// The transaction was dropped because of some limit
|
||||
#[error("The transaction was dropped from the pool because of a limit.")]
|
||||
Dropped,
|
||||
}
|
||||
|
||||
/// Something went wrong trying to encode a storage address.
|
||||
|
||||
Reference in New Issue
Block a user