openethereum/ethcore/evm/src/interpreter
Wei Tang 915c366056
EIP 1283: Net gas metering for SSTORE without dirty maps (#9319)
* Implement last_checkpoint_storage_at

* Add reverted_storage_at for externalities

* sstore_clears_count -> sstore_clears_refund

* Implement eip1283 for evm

* Add eip1283Transition params

* evm: fix tests

* jsontests: fix test

* Return checkpoint index when creating

* Comply with spec Version II

* Fix docs

* Fix jsontests feature compile

* Address grumbles

* Fix no-checkpoint-entry case

* Remove unnecessary expect

* Add test for State::checkpoint_storage_at

* Add executive level test for eip1283

* Hard-code transaction_checkpoint_index to 0

* Fix jsontests

* Add tests for checkpoint discard/revert

* Require checkpoint to be empty for kill_account and commit

* Get code coverage

* Use saturating_add/saturating_sub

* Fix issues in insert_cache

* Clear the state again

* Fix original_storage_at

* Early return for empty RLP trie storage

* Update comments

* Fix borrow_mut issue

* Simplify checkpoint_storage_at if branches

* Better commenting for gas handling code

* Address naming grumbles

* More tests

* Fix an issue in overwrite_with

* Add another test

* Fix comment

* Remove unnecessary bracket

* Move orig to inner if

* Remove test coverage for this PR

* Add tests for executive original value

* Add warn! for an unreachable cause
2018-09-07 18:51:08 +08:00
..
gasometer.rs EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
informant.rs ethcore: fix compilation when using slow-blocks or evm-debug features (#8936) 2018-06-22 11:00:19 +02:00
memory.rs Improve return data truncate logic (#9254) 2018-08-07 11:48:25 +02:00
mod.rs EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
shared_cache.rs Refactor evm Instruction to be a c-like enum (#8914) 2018-06-27 13:33:32 +02:00
stack.rs Update license header and scripts (#8666) 2018-06-04 10:19:50 +02:00