Skip to content

internal/ethapi, graphql: improve handling of gpo.maxprice setting#23547

Closed
rjl493456442 wants to merge 2 commits intoethereum:masterfrom
rjl493456442:fix-gasprice-limit
Closed

internal/ethapi, graphql: improve handling of gpo.maxprice setting#23547
rjl493456442 wants to merge 2 commits intoethereum:masterfrom
rjl493456442:fix-gasprice-limit

Conversation

@rjl493456442
Copy link
Copy Markdown
Member

@rjl493456442 rjl493456442 commented Sep 8, 2021

Previously the gpo.maxprice is only applied for transaction tip. It works before London since there is no baseFee. But after the london basefee dominates the transaction cost, the gpo.maxprice is more or less useless right now.

In this PR, the gpo.maxprice is applied for the final transaction gas price users need to pay, instead of only tip. And also this PR emphasizes the semantics of this flag: Maximum gas price users can afford

Fixes #23490

Comment thread ethclient/ethclient_test.go Outdated
@fjl
Copy link
Copy Markdown
Contributor

fjl commented Sep 21, 2021

Note: interesting question is what happens when the maxprice is configured lower than the current basefee. In this case, geth should create a tx with maxfee = maxprice, but still use the normal tip estimation.

@fjl fjl changed the title eth, ethstats, graphql, internal, les: fix gasprice limit internal/ethapi, graphql: improve handling of gpo.maxprice setting Sep 21, 2021
@rjl493456442
Copy link
Copy Markdown
Member Author

Carefully think about it. I think the correct way to limit the max gasprice is to send 1559 txs. The --gpo.maxprice should only be used for tip capping after london or price capping before london.

Close it now. Will open a PR to update the flag description.

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

Successfully merging this pull request may close these issues.

Max price option don't work

4 participants