From 116386e98360469a7806267813f91b20f525cf88 Mon Sep 17 00:00:00 2001 From: Gav Date: Wed, 11 Jan 2017 17:18:41 +0100 Subject: [PATCH] Alter balance to maximum possible rather than GP=0. --- ethcore/src/client/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 19b21bfe10f..c0eca8a6d89 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -893,14 +893,13 @@ impl BlockChainClient for Client { ExecutionError::TransactionMalformed(message) })?; let balance = original_state.balance(&sender); - let needed_balance = t.value + t.gas * t.gas_price; + let needed_balance = t.value + U256::from(UPPER_CEILING) * t.gas_price; if balance < needed_balance { // give the sender a sufficient balance original_state.add_balance(&sender, &(needed_balance - balance), CleanupMode::NoEmpty); } let options = TransactOptions { tracing: true, vm_tracing: false, check_nonce: false }; let mut tx = t.clone(); - tx.gas_price = 0.into(); let mut cond = |gas| { let mut state = original_state.clone();