Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore user provided nonce for gas estimation #2738

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

librelois
Copy link
Collaborator

What does it do?

The RPC method ets_estimageGas take a Transaction object with a nonce field, moonbeam client require that this nonce is equal to the current on)-chain user nonce + 1.
It's a discrepency with geth behavior, geth always ignore the nonce field (the field is still there to not break the RPC api but not used).

This PR always set the nonce to None inside the estimage_gas function body.

The change is in frontier: moonbeam-foundation/frontier@101e61f

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit breaking Needs to be mentioned in breaking changes labels Apr 4, 2024
Copy link
Contributor

github-actions bot commented Apr 4, 2024

Coverage Report

@@                        Coverage Diff                         @@
##           master   elois-estimate-gas-ignore-nonce     +/-   ##
==================================================================
  Coverage   72.46%                            72.46%   0.00%     
  Files         229                               229             
  Lines       70512                             70512             
==================================================================
  Hits        51094                             51094             
  Misses      19418                             19418             
Files Changed Coverage

Coverage generated Mon Apr 8 13:30:36 UTC 2024

@RomarQ
Copy link
Contributor

RomarQ commented Apr 8, 2024

Are we going to suggest those changes upstream? @librelois

@librelois librelois force-pushed the elois-estimate-gas-ignore-nonce branch from eb180d0 to 42b4f01 Compare April 8, 2024 13:02
@librelois
Copy link
Collaborator Author

Are we going to suggest those changes upstream? @librelois

It make sense to do that yes

@librelois librelois merged commit 36e17c7 into master Apr 9, 2024
26 of 27 checks passed
@librelois librelois deleted the elois-estimate-gas-ignore-nonce branch April 9, 2024 09:24
noandrea pushed a commit that referenced this pull request Apr 10, 2024
noandrea added a commit that referenced this pull request Apr 11, 2024
* Add benchmarks for runtime 2900

* Benchmarks secound run

for commit 36e17c7

* update rust tests accounting for new benches

* Enable Relay Data Verifier Precompile  in Moonriver and Moonbeam (#2729)

* add relay-storage-roots pallet to moonriver and moonbeam

* add tests

* Add relay-verifier precompile to moonriver and moonbeam runtimes

* add pallet precompile-benchmarks to moonriver and moonbeam

* set MaxStorageRoots to 30

* fix coverage

* Update owner of s3 upload action (#2741)

* Update owner of s3 upload action

* Using v1.0.0 instead of master

---------

Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>

* add codeowners (#2740)

* add codeowners

* add github tools scripts to codeowners

github tools are used with github actions

---------

Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>

* Improve release related content (#2743)

* add Moonkit to the diff in the release page body

* fix docker image tag in client release issu body

* Add Storage Cleaner Precompile (#2725)

* Add precompile to moonbase runtime

* bump precompile-utils version to avoid conflict

* update precompile

* add typescript tests

* update frontier pin

* Fix typescirpt test

* Update callable for precompile

Co-authored-by: Éloïs <c@elo.tf>

* fix format

---------

Co-authored-by: Éloïs <c@elo.tf>

* Fix benchmarks (#2733)

* fix pallet_treasury benchmarks

* fix parachain-staking benchmarks

* update frontier (#2738)

* Fix benchmarks (#2746)

* fix pallet_identity benchmarks

* removed unused moonbeam_xcm_benchmarks::weights::generic benchmarks

* update benchmarks (take 3)

* fix rust tests

* update limits for rewards limits

* increase refTime limt for block rewards distribution

---------

Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
Co-authored-by: Mario Sánchez García <66425016+mario-sangar@users.noreply.github.com>
Co-authored-by: timbrinded <79199034+timbrinded@users.noreply.github.com>
Co-authored-by: Éloïs <c@elo.tf>
Co-authored-by: Rodrigo Quelhas <22591718+RomarQ@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes breaking Needs to be mentioned in breaking changes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants