Skip nonce check for gas estimation (#6997)

This commit is contained in:
Arkadiy Paronyan 2017-11-07 09:21:30 +01:00 committed by debris
parent a2d5edb8f5
commit baa1223736

View File

@ -1241,7 +1241,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();