openethereum/ethcore
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
..
benches ethcore: add builtin benchmarks based on geth (#9179) 2018-07-23 15:46:24 +02:00
evm EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
light Light clippy(fy) (#9473) 2018-09-06 15:44:40 +02:00
node_filter Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
private-tx Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
res EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
service Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
src EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
stratum Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
sync Light clippy(fy) (#9473) 2018-09-06 15:44:40 +02:00
transaction Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
types Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
vm EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
wasm EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
Cargo.toml Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00