From 5173be3eb67b100ef1a320211b86133baa47d515 Mon Sep 17 00:00:00 2001 From: subtly Date: Sat, 28 Mar 2015 22:18:14 +0100 Subject: [PATCH] defer signature recovery until after gas price check --- libethereum/State.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libethereum/State.cpp b/libethereum/State.cpp index 486abde12..af3a4a223 100644 --- a/libethereum/State.cpp +++ b/libethereum/State.cpp @@ -421,9 +421,9 @@ TransactionReceipts State::sync(BlockChain const& _bc, TransactionQueue& _tq, Ga { try { - Transaction t(i.second, CheckSignature::Sender); - if (t.gasPrice() >= _gp.ask(*this)) + if (Transaction(i.second, CheckSignature::Range).gasPrice() >= _gp.ask(*this)) { + Transaction t(i.second, CheckSignature::Sender); // don't have it yet! Execute it now. uncommitToMine(); // boost::timer t;