Skip to content

Conversation

@alexandre-abrioux
Copy link
Contributor

🚨 rainbow-me/fee-suggestions#25 is needed before merging this PR.

Description of the changes

Quicknode's RPC servers do not allow the use of an integer for the blockCount argument of eth_feeHistory.
Indeed, the doc specifies that it should be an hexadecimal number:
https://infura.io/docs/ethereum#operation/eth_feeHistory
Infura and Alchemy are more permissive in this regard.

This change will use the hex string instead of an integer to check if eth_feeHistory is supported on the RPC backend.

We need to wait for an update of the rainbow-me/fee-suggestions library before merging this because this library is using an integer and not a hex string in its RPC calls. If we merged this PR right away we would generate errors when running the request-node against Quicknode's backend.

@bertux bertux changed the title fix(request-node): hexidecimal number for eth_feehistory blockcount fix(request-node): hexadecimal number for eth_feehistory blockcount Feb 15, 2022
@bertux
Copy link
Contributor

bertux commented Feb 15, 2022

So why not switch first to Alchemy RPC ?

@alexandre-abrioux
Copy link
Contributor Author

alexandre-abrioux commented Feb 15, 2022

@bertux Infura & Alchemy do not support the Gnosis Chain.
But this PR is not urgent since the original issue was that we were not calling the GasPriceDefiner in TheGraphStorage, so we were using a gas price that was too low sometimes, and this was fixed in #760.

@alexandre-abrioux
Copy link
Contributor Author

Marking this as Draft, PR is stale

@alexandre-abrioux alexandre-abrioux marked this pull request as draft May 23, 2022 07:22
@alexandre-abrioux alexandre-abrioux changed the title fix(request-node): hexadecimal number for eth_feehistory blockcount fix(eip1559): use hex number for eth_feehistory 'blockcount' parameter Oct 7, 2022
@alexandre-abrioux
Copy link
Contributor Author

rebased to fix conflicts following refactor in #931

@coveralls
Copy link

coveralls commented Oct 7, 2022

Coverage Status

Coverage: 87.784%. Remained the same when pulling d01e8fe on fee-history-hex into 35f2ede on master.

@alexandre-abrioux alexandre-abrioux marked this pull request as ready for review March 8, 2023 14:48
@alexandre-abrioux
Copy link
Contributor Author

alexandre-abrioux commented Mar 8, 2023

rainbow-me/fee-suggestions#25 has been merged, and the lib has been updated by @leoslr in #1072, merging this now

@alexandre-abrioux alexandre-abrioux merged commit 139fb70 into master Mar 8, 2023
@alexandre-abrioux alexandre-abrioux deleted the fee-history-hex branch March 8, 2023 14:57
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.

6 participants