Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: detach client state verifier enabling users to implement custom…
… verifier (#1097) * Add empty Verifier trait stub * Remove verifier field from ClientState * Implement TmVerifier for ClientState * Move ClientState trait methods into being standalone functions * Fix some typos * Remove unused fn param on update_client_state_on_misbehaviour * Call standalone functions in trait implementations * Move update_client and misbehaviour methods out of the ClientState impl * Define `DefaultVerifier` type * Replace `ClientState` fn params with `ClientStateType` * Migrate ClientState::initialise function param back to ClientState * Change some associated type constraints * Change From<TmConsensusState> constraint to From<ConsensusStateType> * impl From<ConsensusStateType> for AnyConsensusState * impl some Displays when use-substrate feature is not enabled * Remove unused displaydoc use statement * Revert "Remove unused displaydoc use statement" This reverts commit 92e8e36. * Revert "impl some Displays when use-substrate feature is not enabled" This reverts commit 083399c. * Add docstring comment illustrating how to implement a custom verifier * Ad unclog entry * fix: set NIGHTLY_VERSION=nightly-2024-02-24 * imp: reorganize client_state.rs + clean-ups * nit --------- Co-authored-by: Farhad Shabani <[email protected]>
- Loading branch information