From 7f8adadd6be5d8ce5c1814db47a819a55fcb9d90 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 15 Jan 2016 01:00:32 +0100 Subject: [PATCH] revert_if_needed -> enact_result --- src/executive.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/executive.rs b/src/executive.rs index a6cc8d650..edbad0887 100644 --- a/src/executive.rs +++ b/src/executive.rs @@ -220,7 +220,7 @@ impl<'a> Executive<'a> { let evm = Factory::create(); evm.exec(¶ms, &mut ext) }; - self.revert_if_needed(&res, substate, unconfirmed_substate, backup); + self.enact_result(&res, substate, unconfirmed_substate, backup); res } else { // otherwise, nothing @@ -249,7 +249,7 @@ impl<'a> Executive<'a> { let evm = Factory::create(); evm.exec(¶ms, &mut ext) }; - self.revert_if_needed(&res, substate, unconfirmed_substate, backup); + self.enact_result(&res, substate, unconfirmed_substate, backup); res } @@ -306,7 +306,7 @@ impl<'a> Executive<'a> { } } - fn revert_if_needed(&mut self, result: &evm::Result, substate: &mut Substate, un_substate: Substate, backup: State) { + fn enact_result(&mut self, result: &evm::Result, substate: &mut Substate, un_substate: Substate, backup: State) { // TODO: handle other evm::Errors same as OutOfGas once they are implemented match result { &Err(evm::Error::OutOfGas) => {