pub type TxStatus = TxStatus<GearConfig, OnlineClient<GearConfig>>;
Expand description
Transaction status.
Aliased Type§
enum TxStatus {
Validated,
Broadcasted {
num_peers: u32,
},
NoLongerInBestBlock,
InBestBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>),
InFinalizedBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>),
Error {
message: String,
},
Invalid {
message: String,
},
Dropped {
message: String,
},
}
Variants§
Validated
Transaction is part of the future queue.
Broadcasted
The transaction has been broadcast to other nodes.
NoLongerInBestBlock
Transaction is no longer in a best block.
InBestBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>)
Transaction has been included in block with given hash.
InFinalizedBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>)
Transaction has been finalized by a finality-gadget, e.g GRANDPA
Error
Something went wrong in the node.
Invalid
Transaction is invalid (bad nonce, signature etc).
Dropped
The transaction was dropped.