Skip to content

Commit

Permalink
Feature: reputation of peer (#1347)
Browse files Browse the repository at this point in the history
* feature: reputation

Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
  • Loading branch information
xDimon authored Sep 29, 2022
1 parent 7a35947 commit 91bf737
Show file tree
Hide file tree
Showing 26 changed files with 783 additions and 353 deletions.
3 changes: 3 additions & 0 deletions core/consensus/grandpa/grandpa_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ namespace kagome::consensus::grandpa {
std::optional<const network::FullCommitMessage> commit{};
std::set<primitives::BlockInfo, std::greater<primitives::BlockInfo>>
missing_blocks{};
size_t checked_signature_counter = 0;
size_t invalid_signature_counter = 0;
size_t unknown_voter_counter = 0;

static void set(std::shared_ptr<GrandpaContext> context) {
auto &opt = instance();
Expand Down
Loading

0 comments on commit 91bf737

Please sign in to comment.