You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EIP-1559 is the fee market change for ETH 1.0 chain. It is requested by many third-party software now. To enhance user experiencet, the xdc chain should also support EIP-1559. We propose this plan to achieve this goal.
2. Methodology
There are two methods to implement the EIP-1559:
method 1: fully implement the mechanism of EIP-1559
method 2: only implement the external API and interface of EIP-1559 by fixed data
Here's a brief comparison:
method
1
2
complexity
high
low
workload
heavy
light
gas price
dynamic
fixed
miner rewards
decrease
not changed
There may be unpredictable risks if we choose the first method, since there are many difference between ethereum and xdc blockchain. So we choose the second method for safety and efficiency.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Implement EIP-1559 for XDC chain
Authors: Dan Liu, XDC Protocol Team
Update date: 2024-06-28
1. Context
EIP-1559 is the fee market change for ETH 1.0 chain. It is requested by many third-party software now. To enhance user experiencet, the xdc chain should also support EIP-1559. We propose this plan to achieve this goal.
2. Methodology
There are two methods to implement the EIP-1559:
Here's a brief comparison:
There may be unpredictable risks if we choose the first method, since there are many difference between ethereum and xdc blockchain. So we choose the second method for safety and efficiency.
3. Detailed Operations
According to the official EIP list:
So we should implement the below EIPs:
We picked the PRs from ethereum, and apply them one by one according to the actual situation.
4. Develop schedule
We will work from the latest commit of the dev-upgrade branch. Each PR will also be merged into the dev-upgrade branch.
In terms of role, Dan Liu and the protocol team will develop the code. Gerui Wang and Liam Lai will review and test all the PRs.
4.1 upgrade tx pool
10 work days:
TxPool.Get
.4.2 implemment EIP
txpool.requestReset
hexutil.Uint
infeeHistory
methodLiam
5. Test Strategy
5.1 Local test
5.2 Online test
Beta Was this translation helpful? Give feedback.
All reactions