Skip nonce check for gas estimation (#6997)

This commit is contained in:
Arkadiy Paronyan 2017-11-07 09:21:30 +01:00 committed by Tomasz Drwięga
parent ffee6aacff
commit 85465fc0b1

View File

@ -1242,7 +1242,7 @@ impl BlockChainClient for Client {
// that's just a copy of the state. // that's just a copy of the state.
let original_state = self.state_at(block).ok_or(CallError::StatePruned)?; let original_state = self.state_at(block).ok_or(CallError::StatePruned)?;
let sender = t.sender(); let sender = t.sender();
let options = || TransactOptions::with_tracing(); let options = || TransactOptions::with_tracing().dont_check_nonce();
let cond = |gas| { let cond = |gas| {
let mut tx = t.as_unsigned().clone(); let mut tx = t.as_unsigned().clone();