set gas limit before proving transactions

This commit is contained in:
Robert Habermeier
2017-04-05 11:57:29 +02:00
parent c3769b8874
commit e2dfea8c12
2 changed files with 7 additions and 3 deletions

View File

@@ -243,12 +243,14 @@ impl TransactionProof {
pub fn check_response(&self, state_items: &[DBValue]) -> ProvedExecution {
let root = self.header.state_root();
let mut env_info = self.env_info.clone();
env_info.gas_limit = self.tx.gas.clone();
state::check_proof(
state_items,
root,
&self.tx,
&*self.engine,
&self.env_info,
&env_info,
)
}
}