From 2812f8cae60789a303e8ee2c5ad82a6fb0699a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 18 Apr 2016 13:35:19 +0200 Subject: [PATCH] Small rename --- ethcore/src/error.rs | 2 +- miner/src/transaction_queue.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethcore/src/error.rs b/ethcore/src/error.rs index f68295f38..d74e225f2 100644 --- a/ethcore/src/error.rs +++ b/ethcore/src/error.rs @@ -71,7 +71,7 @@ pub enum TransactionError { Old, /// Transaction has too low fee /// (there is already a transaction with the same sender-nonce but higher gas price) - TooCheap, + TooCheapToReplace, /// Transaction was not imported to the queue because limit has been reached. LimitReached, /// Transaction's gas price is below threshold. diff --git a/miner/src/transaction_queue.rs b/miner/src/transaction_queue.rs index 6b2008448..9db2fd78a 100644 --- a/miner/src/transaction_queue.rs +++ b/miner/src/transaction_queue.rs @@ -96,7 +96,7 @@ use ethcore::error::{Error, TransactionError}; macro_rules! check_too_cheap { ($is_in:expr) => { if !($is_in) { - return Err(TransactionError::TooCheap); + return Err(TransactionError::TooCheapToReplace); } } } @@ -856,7 +856,7 @@ mod test { let res = txq.add(tx2.clone(), &default_nonce); // and then there should be only one transaction in current (the one with higher gas_price) - assert_eq!(unwrap_tx_err(res), TransactionError::TooCheap); + assert_eq!(unwrap_tx_err(res), TransactionError::TooCheapToReplace); assert_eq!(txq.status().pending, 1); assert_eq!(txq.status().future, 0); assert_eq!(txq.current.by_priority.len(), 1);