Skip to content

Conversation

chirag-parmar
Copy link
Contributor

Verified proxy consists fo two components the verifying algorithms and the proxy. This PR logically splits the verification engine from the proxy. The proxy is further broken down into seperate client and server implementations that connect to the verification engine as backend and frontend resp.

@chirag-parmar chirag-parmar marked this pull request as ready for review September 24, 2025 19:48
@tersec
Copy link
Contributor

tersec commented Sep 26, 2025

I'm not sure why it's not triggering in the CI, but when I make nimbus_verified_proxy locally in this branch, I get:

nimbus-eth1/nimbus_verified_proxy/engine/engine.nim(10, 58) Error: duplicate import of 'header_store'; previous import here: nimbus-eth1/nimbus_verified_proxy/engine/engine.nim(10, 17) [DuplicateModuleImport]

which appears to indeed be the case:

import ./types, ./header_store, ./utils, ./rpc_frontend, ./header_store, ./evm

let providerId =
try:
await engine.backend.eth_chainId()
except CatchableError as e:
Copy link
Contributor

@tersec tersec Sep 26, 2025

Choose a reason for hiding this comment

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

nimbus-eth1/nimbus_verified_proxy/nimbus_verified_proxy.nim(48, 30) Hint: 'e' is declared but not used [XDeclaredButNotUsed]

Can just omit the as e, e.g.

    except CatchableError:

Separately, there are a lot of CatchableError references throughout, but that can be addressed via a separate comment. As far as this specific one goes, it's just the XDeclaredButNotUsed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch

Copy link
Member

Choose a reason for hiding this comment

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

that said, almost every time you do catch CatchableError in async code, you must also propagate CancelledError, ie catch and reraise it: https://www.youtube.com/watch?v=1bBVQaAD_jI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did you intend to attach some other link to this comment? or is there a metaphorical meaning to the video?

Copy link
Contributor

Choose a reason for hiding this comment

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

🚔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

606c8db @arnetheduck returning cancelled error now. changed it wherever CatchableError was caught but no other error was propagated.

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