iotex-core
iotex-core copied to clipboard
[evm] support opBasefee
Description
EIP3198 is enabled in London EVM, which accesses evm.Context.BaseFee
. See https://github.com/ethereum/go-ethereum/commit/94451c2788295901c302c9bf5fa2f7b021c924e2#diff-c21870801ba3133fda5991da046fbfd0f83999bda1008a4af84affca83ec5eb9R171
Fixes #(issue)
Type of change
Please delete options that are not relevant.
- [] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [] Code refactor or improvement
- [] Breaking change (fix or feature that would cause a new or changed behavior of existing functionality)
- [] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [x] make test
- [x] fullsync (WIP)
- [] Other test (please specify)
Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream modules
Codecov Report
Merging #3643 (1935154) into master (e9732a1) will decrease coverage by
0.16%
. The diff coverage is78.76%
.
@@ Coverage Diff @@
## master #3643 +/- ##
==========================================
- Coverage 74.95% 74.78% -0.17%
==========================================
Files 269 269
Lines 23819 23881 +62
==========================================
+ Hits 17854 17860 +6
- Misses 5039 5093 +54
- Partials 926 928 +2
Impacted Files | Coverage Δ | |
---|---|---|
db/trie/mptrie/node.go | 100.00% <ø> (ø) |
|
action/protocol/execution/evm/evm.go | 44.57% <26.66%> (-0.86%) |
:arrow_down: |
db/trie/mptrie/hashnode.go | 36.36% <41.17%> (-54.55%) |
:arrow_down: |
db/trie/mptrie/merklepatriciatrie.go | 78.73% <46.80%> (-12.70%) |
:arrow_down: |
db/trie/mptrie/leafiterator.go | 62.06% <50.00%> (ø) |
|
action/protocol/execution/evm/evmstatedbadapter.go | 65.87% <64.28%> (-0.04%) |
:arrow_down: |
db/trie/mptrie/extensionnode.go | 91.91% <94.28%> (-1.07%) |
:arrow_down: |
db/trie/mptrie/branchnode.go | 97.60% <98.66%> (-1.01%) |
:arrow_down: |
action/protocol/context.go | 68.00% <100.00%> (+0.25%) |
:arrow_up: |
api/grpcserver.go | 83.33% <100.00%> (ø) |
|
... and 6 more |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more