BuildOnViction / victionchain

The Efficient Blockchain Powered By Proof Of Stake Voting Consensus
https://viction.xyz
GNU Lesser General Public License v3.0
168 stars 85 forks source link

Fix & Update EstimateGas API #462

Open c98tristan opened 1 month ago

c98tristan commented 1 month ago
  1. Fix too many arguments, want at most 1 when call eth_estimateGas
  2. Fix default gasPrice depend on balanceTokenFee
  3. Add executionResult to emphasizes the difference between Consensus error and EVM internal error.
  4. Fix race condition by copy state from stateDB each execution.
  5. Optimize time execution estimate gas.
  6. Get balanceTokenFee from stateDB instead of default value
  7. Remove gasLimit and gasPrice when using contract call
  8. Remove logic set gasPrice when balanceTokenFee exist.
  9. Unit testing

Reference:

imterryyy commented 1 month ago

Does this change require protocol update ?

beage666 commented 1 month ago

Yes