From 31ffb467f58ac01306aaab8d14212888aa7491f6 Mon Sep 17 00:00:00 2001 From: Vlad Lupashevskyi Date: Sat, 23 Dec 2017 00:00:27 +0200 Subject: [PATCH] Passing verify tx errors to the caller --- ethcore/src/miner/miner.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ethcore/src/miner/miner.rs b/ethcore/src/miner/miner.rs index 06c35c5e4..a40e7b4a1 100644 --- a/ethcore/src/miner/miner.rs +++ b/ethcore/src/miner/miner.rs @@ -699,10 +699,7 @@ impl Miner { }, Ok(transaction) => { // This check goes here because verify_transaction takes SignedTransaction parameter - if self.engine.machine().verify_transaction(&transaction, &best_block_header, client.as_block_chain_client()).is_err() { - debug!(target: "miner", "Rejected disallowed tx {:?}", hash); - return Err(Error::Transaction(TransactionError::NotAllowed)); - } + self.engine.machine().verify_transaction(&transaction, &best_block_header, client.as_block_chain_client())?; let origin = self.accounts.as_ref().and_then(|accounts| { match accounts.has_account(transaction.sender()).unwrap_or(false) {