-
Notifications
You must be signed in to change notification settings - Fork 984
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
fix panic when the rpc client is not initialized #11528
Conversation
24a3d43
to
5d98dc2
Compare
5d98dc2
to
3b245ae
Compare
Interesting approach to fixing this. Our typical solution is to add nil checks, but I am wondering why this client was not set in the constructor anyway. cc: @rauljordan (#10498) Raul, any thoughts here? |
@prestonvanloon The reason it isn't added is because we need to create an active connection with the execution client. So doing this in the constructor seemed wrong. |
What approach would you suggest? |
@krasi-georgiev , your approach is fine. I was just explaining to preston why we cant create it in the constructor |
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
What type of PR is this?
Bug fix
fixes this panic when the code tries to call the rpc client before it is initialized
also reported in the flashbot repo
flashbots/prysm#7