Refactor the ChainEndpoint
trait to expose the light client functionality directly
#2548
Closed
1 of 5 tasks
Milestone
Summary
Refactor the
ChainEndpoint
trait to expose the light client functionality directly instead of via a getter for aLightClient
.Problem Definition
The chain runtime is too coupled to the light client (the former should ideally not need to know about the latter). By decoupling the two we could simplify the runtime initialization code and keep a cleaner SoC.
Proposal
Instead of exposing a getter for the
LightClient
trait, theChainEndpoint
trait should now define the two methodsverify_header
andcheck_misbehaviour
directly.Acceptance Criteria
As above.
For Admin Use
The text was updated successfully, but these errors were encountered: