Common error handling

This commit is contained in:
Tomasz Drwięga
2016-03-17 15:49:29 +01:00
parent 833c5fdd31
commit 7ae60056b2
6 changed files with 24 additions and 17 deletions

View File

@@ -65,6 +65,10 @@ pub enum ExecutionError {
#[derive(Debug)]
/// Errors concerning transaction processing.
pub enum TransactionError {
/// Transaction is already imported to the queue
AlreadyImported,
/// Transaction is not valid anymore (state already has higher nonce)
Old,
/// Transaction's gas price is below threshold.
InsufficientGasPrice {
/// Minimal expected gas price