Skip to content

Conversation

@jxs
Copy link
Member

@jxs jxs commented Dec 18, 2024

and the Ethspec parameters can be passed on function all time

@jxs jxs force-pushed the remove-e-from-validator-client branch 2 times, most recently from 30c3a7c to 96dcd1d Compare December 18, 2024 16:19
object,
Web3SignerObject::Deposit { .. } | Web3SignerObject::ValidatorRegistration(_)
) && fork_info.is_some()
if matches!(message_type, MessageType::ValidatorRegistration) && fork_info.is_some()
Copy link
Member Author

Choose a reason for hiding this comment

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

object can never be a Web3SignerObject::Deposit as a SignableMessage doesn't convert to it, see line 202 above

Copy link
Member

Choose a reason for hiding this comment

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

Feels kinda hard to keep track if SignableMessage starts converting to a Web3SignerObject::Deposit in the future.
I don't see the issue with keeping it as is, but what you said makes sense as well.
Although, i don't have enough context on the web3signer to know for sure

@jxs jxs force-pushed the remove-e-from-validator-client branch 8 times, most recently from 6f0df3d to b01c568 Compare December 18, 2024 22:58
@jxs jxs force-pushed the remove-e-from-validator-client branch 5 times, most recently from b4920c5 to 08b3156 Compare December 19, 2024 15:43
@jxs jxs force-pushed the remove-e-from-validator-client branch from 08b3156 to a9cc2fb Compare December 19, 2024 15:59
Copy link
Member

@pawanjay176 pawanjay176 left a comment

Choose a reason for hiding this comment

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

LGTM.
I'd recommend running this version of the VC on testnets before merging to make sure there isn't something that breaks unexpectedly


[dependencies]
account_utils = { workspace = true }
beacon_node_fallback = { workspace = true }
Copy link
Member

Choose a reason for hiding this comment

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

Not really sure why we had to add dependencies here

Copy link
Member Author

Choose a reason for hiding this comment

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

yup you are right, it was because I had remove doppelganger_service as a separate crate but I have since removed again, thanks Pawan!

object,
Web3SignerObject::Deposit { .. } | Web3SignerObject::ValidatorRegistration(_)
) && fork_info.is_some()
if matches!(message_type, MessageType::ValidatorRegistration) && fork_info.is_some()
Copy link
Member

Choose a reason for hiding this comment

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

Feels kinda hard to keep track if SignableMessage starts converting to a Web3SignerObject::Deposit in the future.
I don't see the issue with keeping it as is, but what you said makes sense as well.
Although, i don't have enough context on the web3signer to know for sure

@AgeManning
Copy link
Member

Whats the state of this guy? We still doing this?

@dknopik
Copy link
Member

dknopik commented Jan 16, 2025

Whats the state of this guy? We still doing this?

Came here to ask the same thing :D

I implemented #6705 with this PR in mind. Unfortunately, there I introduce a new generic parameter to the duties service: S: ValidatorStore (which will have one struct impling it for each LH and Anchor), and as we need E in Anchors ValidatorStore impl, we need to reintroduce it in a few places in Lighthouse as well. That being said, some benefits introduced in this PR remain, so I propose to go ahead with this. I encourage anyone to check out PR #6705 and the diff between the two PRs, maybe we can find an even better way :)

@jxs
Copy link
Member Author

jxs commented Jan 19, 2025

Whats the state of this guy? We still doing this?

Came here to ask the same thing :D

I implemented #6705 with this PR in mind. Unfortunately, there I introduce a new generic parameter to the duties service: S: ValidatorStore (which will have one struct impling it for each LH and Anchor), and as we need E in Anchors ValidatorStore impl, we need to reintroduce it in a few places in Lighthouse as well. That being said, some benefits introduced in this PR remain, so I propose to go ahead with this. I encourage anyone to check out PR #6705 and the diff between the two PRs, maybe we can find an even better way :)

thanks for the ping. I think we should merge @dknopik's PR instead as it contains these changes. So going to close this one

@jxs jxs closed this Jan 19, 2025
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.

4 participants