Skip to content
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

Add context on few error logs + early return on encoding streamer #372

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Mar 20, 2024

Why are these changes needed?

Few minor fixes and additional information on some error logs

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim requested review from mooselumph and jianoaix March 20, 2024 05:24
@ian-shim ian-shim changed the title Add context on few error logs Add context on few error logs + early return on encoding streamer Mar 20, 2024
@ian-shim ian-shim marked this pull request as ready for review March 20, 2024 05:25
core/thegraph/state.go Outdated Show resolved Hide resolved
core/thegraph/state.go Outdated Show resolved Hide resolved
@@ -190,6 +190,11 @@ func RunBatcher(ctx *cli.Context) error {
if err != nil {
return err
}
sender, err := wallet.SenderAddress(context.Background())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have a developed perspective on this, but if this is just used for logging, should we error out the function if we can't get it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this value is actually used for validation: https://github.com/Layr-Labs/eigenda/blob/master/disperser/cmd/batcher/main.go#L210
I'll rebase this one as the logging got added in another PR

@ian-shim ian-shim merged commit a704e2f into Layr-Labs:master Mar 25, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants