Skip to content

London: EIP-3529#3

Merged
birchmd merged 4 commits into
feat/london-supportfrom
feat/london/eip-3529
Sep 7, 2021
Merged

London: EIP-3529#3
birchmd merged 4 commits into
feat/london-supportfrom
feat/london/eip-3529

Conversation

@birchmd
Copy link
Copy Markdown
Member

@birchmd birchmd commented Aug 25, 2021

@birchmd birchmd requested a review from joshuajbouw August 25, 2021 14:22
@birchmd birchmd force-pushed the feat/london/eip-3529 branch from fe80309 to bfccce1 Compare August 25, 2021 15:09
@birchmd birchmd force-pushed the feat/london/eip-3529 branch from bfccce1 to 5251f48 Compare August 25, 2021 15:12
Comment thread gasometer/src/costs.rs
Comment on lines -42 to -49
let (gas_sstore_reset, gas_sload) = if config.increase_state_access_gas {
(
config.gas_sstore_reset - config.gas_sload_cold,
config.gas_storage_read_warm,
)
} else {
(config.gas_sstore_reset, config.gas_sload)
};
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided that doing this arithmetic at runtime was sub-optimal, so I pushed it into constructing the config itself with an addition const fn that takes some arguments. Computing these derived parameters at the level of constructing the config also makes the change to refund_sstore_clears in EIP-3529 cleaner.

@birchmd birchmd merged this pull request into feat/london-support Sep 7, 2021
@aleksuss aleksuss deleted the feat/london/eip-3529 branch September 25, 2023 12:02
mrLSD pushed a commit that referenced this pull request Nov 29, 2023
* Integrate jsontests to CI

* cargo test -> cargo run

* Run cargo fmt

* Test CI #1

* Test CI #2

* Test CI #3
aleksuss referenced this pull request in aleksuss/sputnikvm Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants