Conversation
Avalanche's chain entry had no method-spec override, so it fell back to the bare eth spec, which never listed eth_baseFee - a real, documented Avalanche C-Chain JSON-RPC extension for the next block's base fee. Every configured upstream serves the method correctly; only the spec-level allowlist was missing it, so nodecore refused to route it to any upstream and returned "method does not exist" instead. Give avalanche its own spec (mirrors fantom's ftm_effectiveBaseFee pattern): import eth, then add eth_baseFee as a non-cacheable method.
eth_baseFee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #273.
Avalanche's
chains.yamlentry had nomethod-specoverride, so it fell back to the bareethspec, which never listedeth_baseFee— a real, documented Avalanche C-Chain JSON-RPC extension for the next block's base fee (docs). Every configured upstream serves the method correctly; only the spec-level allowlist was missing it, so nodecore refused to route it to any upstream and returned-32601 method does not existwithresponse-provider: NoUpstream.This mirrors the existing
fantompattern (which addsftm_effectiveBaseFeethe same way) rather than introducing anything new:pkg/methods/specs/avalanche.json(new) —"spec-imports": ["eth"], addseth_baseFeeas a non-cacheable method (it reflects the next block, so caching it would be wrong for the same reasoneth_gasPriceandftm_effectiveBaseFeeare alsocacheable: false)chains.yaml— setsmethod-spec: "avalanche"on the avalanche entrydocs/method-specs.md— listsavalanchealongside the other plain, eth-importing specspkg/methods/methods_spec_test.go— newTestAvalancheSpecLoadsTest plan
go test ./...passes (full repo suite, including the new test)drpcorg/nodecorecheckout (go.modreplace pointing at this branch):specs.GetSpecMethodsByConnectors("avalanche", ...)now includeseth_baseFeealongside the inheritedethmethods (e.g.eth_blockNumber), and does not leakftm_effectiveBaseFeeor other unrelated chain extensions