openethereum/ethcore/wasm/src
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
..
env.rs gasleft extern implemented for WASM runtime (kip-6) (#9357) 2018-08-24 18:03:46 +02:00
lib.rs Allow single opcode stepping for EVM (#9051) 2018-08-14 04:06:15 +08:00
panic_payload.rs Update license header and scripts (#8666) 2018-06-04 10:19:50 +02:00
parser.rs bump parking_lot to 0.6 (#9013) 2018-07-03 17:31:08 +02:00
runtime.rs EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
tests.rs gasleft extern implemented for WASM runtime (kip-6) (#9357) 2018-08-24 18:03:46 +02:00