Kagome
Polkadot Runtime Engine in C++17
reputation_change.hpp File Reference
#include <chrono>
#include <libp2p/peer/peer_id.hpp>
Include dependency graph for reputation_change.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::network::ReputationChange
 

Namespaces

 kagome::network
 
 kagome::network::reputation
 
 kagome::network::reputation::cost
 
 kagome::network::reputation::benefit
 

Typedefs

using kagome::network::Reputation = std::int32_t
 

Variables

const ReputationChange kagome::network::reputation::cost::UNEXPECTED_DISCONNECT = {-1000, "Network: Unexpected disconnect"}
 
const ReputationChange kagome::network::reputation::cost::DUPLICATE_BLOCK_REQUEST = {-50, "Sync: Duplicate block request"}
 
const ReputationChange kagome::network::reputation::cost::PAST_REJECTION = {-50, "Grandpa: Past message"}
 
const ReputationChange kagome::network::reputation::cost::BAD_SIGNATURE = {-100, "Grandpa: Bad signature"}
 
const ReputationChange kagome::network::reputation::cost::MALFORMED_CATCH_UP = {-1000, "Grandpa: Malformed catch-up"}
 
const ReputationChange kagome::network::reputation::cost::MALFORMED_COMMIT = {-1000, "Grandpa: Malformed commit"}
 
const ReputationChange kagome::network::reputation::cost::FUTURE_MESSAGE = {-500, "Grandpa: Future message"}
 
const ReputationChange kagome::network::reputation::cost::UNKNOWN_VOTER = {-150, "Grandpa: Unknown voter"}
 
const ReputationChange kagome::network::reputation::cost::INVALID_VIEW_CHANGE = {-500, "Grandpa: Invalid view change"}
 
const ReputationChange kagome::network::reputation::cost::UNDECODABLE_NEIGHBOR_MESSAGE = {-5, "Grandpa: Bad packet"}
 
const ReputationChange kagome::network::reputation::cost::PER_UNDECODABLE_BYTE = {-5, ""}
 
const ReputationChange kagome::network::reputation::cost::BAD_CATCHUP_RESPONSE = {-25, "Grandpa: Bad catch-up message"}
 
const ReputationChange kagome::network::reputation::cost::PER_SIGNATURE_CHECKED = {-25, ""}
 
const ReputationChange kagome::network::reputation::cost::PER_BLOCK_LOADED = {-10, ""}
 
const ReputationChange kagome::network::reputation::cost::INVALID_CATCH_UP = {-5000, "Grandpa: Invalid catch-up"}
 
const ReputationChange kagome::network::reputation::cost::INVALID_COMMIT = {-5000, "Grandpa: Invalid commit"}
 
const ReputationChange kagome::network::reputation::cost::OUT_OF_SCOPE_MESSAGE = {-500, "Grandpa: Out-of-scope message"}
 
const ReputationChange kagome::network::reputation::cost::CATCH_UP_REQUEST_TIMEOUT = {-200, "Grandpa: Catch-up request timeout"}
 
const ReputationChange kagome::network::reputation::cost::CATCH_UP_REPLY = {-200, "Grandpa: Catch-up reply"}
 
const ReputationChange kagome::network::reputation::cost::HONEST_OUT_OF_SCOPE_CATCH_UP = {-200, "Grandpa: Out-of-scope catch-up"}
 
const ReputationChange kagome::network::reputation::benefit::NEIGHBOR_MESSAGE = {100, "Grandpa: Neighbor message"}
 
const ReputationChange kagome::network::reputation::benefit::ROUND_MESSAGE = {100, "Grandpa: Round message"}
 
const ReputationChange kagome::network::reputation::benefit::BASIC_VALIDATED_CATCH_UP = {200, "Grandpa: Catch-up message"}
 
const ReputationChange kagome::network::reputation::benefit::BASIC_VALIDATED_COMMIT = {100, "Grandpa: Commit"}
 
const ReputationChange kagome::network::reputation::benefit::PER_EQUIVOCATION = {10, ""}