Skip to content

Conversation

arnetheduck
Copy link
Member

@arnetheduck arnetheduck commented Sep 24, 2025

Making the two projects more similar makes it easier to maintain a cohesive user experience over time:

  • remove metrics logging - this is not viable for the amount of metrics that we have (no other project has this either)
  • remove EthContext - looks like a refactoring leftover
  • reuse more nimbus_binary_common utilities instead of homegrown versions
  • bump eth2

In particular, these changes are sufficient to support #3646 .

@arnetheduck arnetheduck marked this pull request as draft September 24, 2025 18:39
Making the two projects more similar makes it easier to maintain a
cohesive user experience over time:

* remove metrics logging - this is not viable for the amount of metrics
that we have (no other project has this either)
* remove `EthContext` - looks like a refactoring leftover
* reuse more `nimbus_binary_common` utilities instead of homegrown
versions
* bump eth2
@arnetheduck
Copy link
Member Author

Draft until status-im/nimbus-eth2#7526 has been merged

# noinline to keep it in stack traces
proc main() {.noinline, raises: [CatchableError].} =
const
banner = "Nimbus verified proxy " & fullVersionStr
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we import execution_chain/version_info and use FullVersionStr? proxy will remain in sync with execution_chain that way

Copy link
Contributor

Choose a reason for hiding this comment

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

Also nimbus_portal_client will require this eventually (fairly soon). Should be sufficient to import just FullVersionStr from execution client version file?

Copy link
Contributor

@chirag-parmar chirag-parmar Sep 26, 2025

Choose a reason for hiding this comment

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

bette done that way because the releases will be clubbed together. UPDATE: And it makes more sense to maintain one version file rather than three

@tersec tersec marked this pull request as ready for review September 26, 2025 12:16
@tersec
Copy link
Contributor

tersec commented Sep 26, 2025

Draft until status-im/nimbus-eth2#7526 has been merged

Merged.

return false
true

proc getNetKeys*(rng: var HmacDrbgContext, netKey: string): Result[KeyPair, string] =
Copy link
Contributor

Choose a reason for hiding this comment

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

portal client has code with a similar goal but obviously differently implemented 😅 : https://github.com/status-im/nimbus-eth1/blob/master/portal/common/common_utils.nim#L81

Probably something we want to also make common in another iteration (and potentially with rework of nimbus-eth2 keystore to also use that...)

@tersec tersec enabled auto-merge (squash) September 26, 2025 19:06
@tersec tersec merged commit 6720a0e into master Sep 26, 2025
18 checks passed
@tersec tersec deleted the bn-lib branch September 26, 2025 19:53
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