-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Execution] Shadow Execution node implementation #5411
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5411 +/- ##
==========================================
+ Coverage 55.97% 59.90% +3.93%
==========================================
Files 1022 543 -479
Lines 99705 51998 -47707
==========================================
- Hits 55807 31150 -24657
+ Misses 39598 18532 -21066
+ Partials 4300 2316 -1984
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f42a417
to
c4ac5bd
Compare
network/noop.go
Outdated
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.
Please move this to network/underlay
sub-package.
error, | ||
) { | ||
if !node.ObserverMode { | ||
return &module.NoopReadyDoneAware{}, nil |
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.
can you add a log indicating whether or not this module was run
cmd/execution_builder.go
Outdated
// Execution Data cache that uses a blobstore as the backend (instead of a downloader) | ||
// This ensures that it simply returns a not found error if the blob doesn't exist | ||
// instead of attempting to download it from the network. |
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 comment isn't right. it's actually using a downloader (correctly).
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.
OK, it was copied from here tho
cmd/execution_builder.go
Outdated
exeNode.followerDistributor.AddOnBlockFinalizedConsumer(r.OnBlockFinalized) | ||
|
||
execDataDistributor.AddOnExecutionDataReceivedConsumer(func(data *execution_data.BlockExecutionDataEntity) { | ||
if len(data.BlockExecutionData.ChunkExecutionDatas) == 0 { |
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.
did you find that this case was encountered? There should always be at least one chunk because of the system chunk
cmd/utils.go
Outdated
) ( | ||
p2p.IDTranslator, | ||
func() module.IdentifierProvider, | ||
error) { |
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.
error) { | |
error, | |
) { |
5e08a8f
to
023479f
Compare
023479f
to
29d62a4
Compare
29d62a4
to
e8db78b
Compare
@@ -97,13 +103,13 @@ func WriteFile(path string, data []byte) error { | |||
return err | |||
} | |||
|
|||
func WriteObserverPrivateKey(observerName, bootstrapDir string) error { | |||
func WriteObserverPrivateKey(observerName, bootstrapDir string) (crypto.PrivateKey, error) { |
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 new return is never used.
Close #5118
Adding observer mode to execution node so that a unstaked EN can sync blocks and collections from a staked public access node and execute blocks. It's useful for testing execution node changes, as it can run and execute on its own with new changes.
How to test: