Kagome
Polkadot Runtime Engine in C++17
kagome::network::reputation::cost Namespace Reference

Variables

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

Variable Documentation

const ReputationChange kagome::network::reputation::cost::BAD_CATCHUP_RESPONSE = {-25, "Grandpa: Bad catch-up message"}

Definition at line 73 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::BAD_SIGNATURE = {-100, "Grandpa: Bad signature"}

Definition at line 54 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::CATCH_UP_REPLY = {-200, "Grandpa: Catch-up reply"}

Definition at line 84 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::CATCH_UP_REQUEST_TIMEOUT = {-200, "Grandpa: Catch-up request timeout"}

Definition at line 81 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::DUPLICATE_BLOCK_REQUEST = {-50, "Sync: Duplicate block request"}

Definition at line 50 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::FUTURE_MESSAGE = {-500, "Grandpa: Future message"}

Definition at line 59 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::HONEST_OUT_OF_SCOPE_CATCH_UP = {-200, "Grandpa: Out-of-scope catch-up"}

Definition at line 89 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::INVALID_CATCH_UP = {-5000, "Grandpa: Invalid catch-up"}

Definition at line 78 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::INVALID_COMMIT = {-5000, "Grandpa: Invalid commit"}

Definition at line 79 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::INVALID_VIEW_CHANGE = {-500, "Grandpa: Invalid view change"}

Definition at line 64 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::MALFORMED_CATCH_UP = {-1000, "Grandpa: Malformed catch-up"}

Definition at line 55 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::MALFORMED_COMMIT = {-1000, "Grandpa: Malformed commit"}

Definition at line 56 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::OUT_OF_SCOPE_MESSAGE = {-500, "Grandpa: Out-of-scope message"}

Definition at line 80 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::PAST_REJECTION = {-50, "Grandpa: Past message"}

Definition at line 52 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::PER_BLOCK_LOADED = {-10, ""}

Definition at line 77 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::PER_SIGNATURE_CHECKED = {-25, ""}

Definition at line 75 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::PER_UNDECODABLE_BYTE = {-5, ""}

Definition at line 70 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::UNDECODABLE_NEIGHBOR_MESSAGE = {-5, "Grandpa: Bad packet"}

Definition at line 68 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::UNEXPECTED_DISCONNECT = {-1000, "Network: Unexpected disconnect"}

Definition at line 49 of file reputation_change.hpp.

const ReputationChange kagome::network::reputation::cost::UNKNOWN_VOTER = {-150, "Grandpa: Unknown voter"}

Definition at line 61 of file reputation_change.hpp.