-
Notifications
You must be signed in to change notification settings - Fork 139
Minimal Spec Support #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Minimal Spec Support #740
Conversation
|
Interesting, thanks for opening the PR! 🔥 |
|
|
||
| func (r *VersionedSubmitBlockRequest) HashTreeRootWithManager(sszManager *SSZManager) (phase0.Root, error) { | ||
| if sszManager != nil && sszManager.IsInitialized() { | ||
| return sszManager.HashTreeRoot(r) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will need the same switch/case logic as below.
you'll need to pass r.Capella / r.Deneb or r.Electra to sszManager.HashTreeRoot.
passing the whole versioned object will give you an invalid tree root (most likely throws an error too, as nil pointers are not allowed in ssz)
services/api/service.go
Outdated
| specConfig := make(map[string]interface{}) | ||
|
|
||
| // Add relevant fields from beacon spec | ||
| specConfig["SECONDS_PER_SLOT"] = strconv.FormatUint(beaconSpec.SecondsPerSlot, 10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this mapping really necessary?
Ideally you'll pass all spec values to dynssz, as it's not obvious if you mapped all the required spec values here.
📝 Summary
Implements dynamic SSZ encoding support to enable MEV-Boost relay compatibility with Ethereum minimal spec devnets, while maintaining full backward compatibility with mainnet/testnet operations.
Key Changes:
⛱ Motivation and Context
Faster iterative testing on devnets
📚 References
#738
✅ I have run these commands
make lintmake test-racego mod tidyCONTRIBUTING.md