-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Misbehavior monitoring and handling (#691)
* Split client_def in state, consensus, header. Add sketch for Tx decoding. * Added misbehaviour message, structures, relayer submission * tentative try with interim update event from cosmos PR * trying to decode the header from event * decode the header in client update event * Added restart support, move some of the misbehaviour detection in light client, reorg * fix merge * add support for potential on-chain state pruning, cleanup * Update changelog * sketch for time travelling lunatic attack check * fmt * Decode misbehaviour events, added comments * Update to reflect bad updates in the middle * cargo fmt * Cleanup consensus query and allow query for all * Allow target and trusted heights to be specified in client updates * Allow update with any existing trusted height * Disallow create client with same src and dst * Fix tests * Added mock misbehaviour * Fix CI and reorg code * Cleanup * Updates after sitdown review * Update comments * Flip back the logic in compatible_headers() * Rename client_misbehaviour to misbehaviour * review comments * fmt * Return UpdateClient::consensus_height by copy instead of reference * Small cleanup in LightClient::build_misbehaviour * Small cleanup in chain::cosmos * Set pagination limit to u64::MAX for all queries that support it to ensure we get all results at once See #811 * Addressed review comments Co-authored-by: Romain Ruetschi <[email protected]>
- Loading branch information
1 parent
7c2c6a4
commit ff0e6e5
Showing
56 changed files
with
1,652 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.