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

Estimate the cost the proposer has to charge in fees based in changeCurrentProposer gas cost or other related values. #1257

Open
daveroga opened this issue Nov 23, 2022 · 1 comment

Comments

@daveroga
Copy link
Contributor

No description provided.

@daveroga daveroga mentioned this issue Nov 23, 2022
7 tasks
@eugypalu eugypalu self-assigned this Nov 24, 2022
@eugypalu
Copy link
Contributor

eugypalu commented Nov 24, 2022

64 tx/block
10TPS Nightfall -> 1 block every 6.4 sec
32 L1Blocks -> 6.4 minutes
proposeBlock avg Gas cost: 175221
changeCurrentProposer avg Gas cost: 156273

changeCurrentProposer + (proposeBlock * numBlocks) < numBlocks * 64 tx/block * fee

(changeCurrentProposer + (proposeBlock * 60)) / (60 blocks * 64 tx/block) < fee

10669533 gas cost / 3840 < fee

2778 < fee

The cost incurred by the proposer in case there is only 1 transaction and only 1 block is:

changeCurrentProposer + proposeBlock < fee

331494 gas cost < fee

@eugypalu eugypalu removed their assignment Aug 1, 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

No branches or pull requests

2 participants