0xPolygon / 0xPolygon/polygon-cli
GasPrices are not updated
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 91
- Forks
- 86
- Avg merge
- 20h 11m
- Merged PRs (30d)
- 14
Description
{"level":"debug","cachedBlockNumber":68854518,"cachedgasPrice":25000000015,"cachedGasTipCap":25000000000,"time":"2025-03-13T11:45:06Z","message":"Updating gas prices"}
{"level":"debug","cachedBlockNumber":68854519,"cachedgasPrice":25000000015,"cachedGasTipCap":25000000000,"time":"2025-03-13T11:45:07Z","message":"Updating gas prices"}
{"level":"debug","cachedBlockNumber":68854519,"cachedgasPrice":25000000015,"cachedGasTipCap":25000000000,"time":"2025-03-13T11:45:07Z","message":"Updating gas prices"}
{"level":"debug","cachedBlockNumber":68854520,"cachedgasPrice":25000000015,"cachedGasTipCap":25000000000,"time":"2025-03-13T11:45:09Z","message":"Updating gas prices"}
While testing on one of the PoS nodes, I used polycli loadtest for spamming transactions. However, after each block, the transactions were not sent with the updated gas prices. As you can see, the cachedBlockNumber is changing, but the cachedgasPrice and cachedGasTipCap are the same.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with polycli loadtest on a PoS node and trace how gas prices are updated between blocks. The issue is done when transactions use updated gasPrice and gasTipCap values after each block, rather than retaining the logged cached values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100