Closed fubuloubu closed 3 months ago
Tried using Alchemy instead, no issue, so I think this is an Infura-specific thing
What's happening is that trying to parse a block received from a newHeads
subscription using eth_subscribe
is actually under-specified according to BlockAPI
, so we need to add the missing field in order for it to parse. In the future, refactoring is needed to properly account for this situation and "enrich" the block when the missing field(s) are requested by the user
Environment information
ape
and plugin versions:What went wrong?
The field
"size"
is not available in the serialized data structure, at least for Optimism using an Infura provider (both up to date):Unsure if it applies to other networks and/or provider types
How can it be fixed?
size
could have a default value, or be set dynamically, but it is strange that this field does not appear when it is a mandatory field on the defaultBlockAPI
structure (hinting at some other issue)