mirror of https://github.com/ethereum/go-ethereum
graphql: check header first in blocks query (#24190)
Fixes #24167 New behaviour is that the endpoint returns results only for available blocks without returning an error when it doesn't find a block. Note we skip any block after a non-existent block. This adds a header fetch for every block in range (even if header is not needed). Alternatively, we could do the check in every field's resolver method to avoid this overhead.pull/24292/head
parent
66a908c5e8
commit
c0d17bca52
Loading…
Reference in new issue