From 0808723c506698fd3661c978ea1350358cef752f Mon Sep 17 00:00:00 2001 From: arkpar Date: Fri, 17 Apr 2015 14:45:44 +0200 Subject: [PATCH] add some balance for gas estimation --- mix/MixClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mix/MixClient.cpp b/mix/MixClient.cpp index 965a4c5ac..35d7dc413 100644 --- a/mix/MixClient.cpp +++ b/mix/MixClient.cpp @@ -117,6 +117,7 @@ void MixClient::executeTransaction(Transaction const& _t, State& _state, bool _c lastHashes[i] = lastHashes[i - 1] ? bc().details(lastHashes[i - 1]).parent : h256(); State execState = _state; + execState.addBalance(t.sender(), t.gas() * t.gasPrice()); //give it enough balance for gas estimation Executive execution(execState, lastHashes, 0); execution.initialize(&rlp); execution.execute();