Small rename
This commit is contained in:
parent
881678b613
commit
2812f8cae6
@ -71,7 +71,7 @@ pub enum TransactionError {
|
|||||||
Old,
|
Old,
|
||||||
/// Transaction has too low fee
|
/// Transaction has too low fee
|
||||||
/// (there is already a transaction with the same sender-nonce but higher gas price)
|
/// (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.
|
/// Transaction was not imported to the queue because limit has been reached.
|
||||||
LimitReached,
|
LimitReached,
|
||||||
/// Transaction's gas price is below threshold.
|
/// Transaction's gas price is below threshold.
|
||||||
|
@ -96,7 +96,7 @@ use ethcore::error::{Error, TransactionError};
|
|||||||
macro_rules! check_too_cheap {
|
macro_rules! check_too_cheap {
|
||||||
($is_in:expr) => {
|
($is_in:expr) => {
|
||||||
if !($is_in) {
|
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);
|
let res = txq.add(tx2.clone(), &default_nonce);
|
||||||
|
|
||||||
// and then there should be only one transaction in current (the one with higher gas_price)
|
// 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().pending, 1);
|
||||||
assert_eq!(txq.status().future, 0);
|
assert_eq!(txq.status().future, 0);
|
||||||
assert_eq!(txq.current.by_priority.len(), 1);
|
assert_eq!(txq.current.by_priority.len(), 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user