Closed mattsse closed 4 months ago
Closing this as wontfix. Per @DaniPopes research, issue occurs because tests are run with 2MB stacks, and the serde_json deserialization routine needs more stack space to deserialize a blob on the stack. Should be addressed by boxing blobs
Component
rpc
What version of Alloy are you on?
main
Operating System
macOS (Apple Silicon)
Describe the bug
the Blob alias is a very large array (131_072):
https://github.com/alloy-rs/alloy/blob/eb0d564f0105254b9fc29be6dde301d4a2b74ebc/crates/eips/src/eip4844/mod.rs#L72-L73
following code results in a SO in debug:
full blob (too large for issue): https://gist.github.com/mattsse/c2e5060d45f074d852d7a63086244917
but just using a hex string, and not json string, this succeeds:
parsing it as the c-kzg Blob type which is also just an array does succeed
This also fails
this workaround works