#include <reputation_repository.hpp>
|
using | PeerId = libp2p::peer::PeerId |
|
Storage to handle peers' reputation
Definition at line 22 of file reputation_repository.hpp.
virtual kagome::network::ReputationRepository::~ReputationRepository |
( |
| ) |
|
|
virtualdefault |
Change peer reputation by arbitrary amount of points
- Parameters
-
peer_id | - peer identifier |
diff | - reputation increment or decrement |
- Returns
- - resulting peer reputation
Implemented in kagome::network::ReputationRepositoryImpl.
Change peer reputation by arbitrary amount of points for a specified amount of time
- Parameters
-
peer_id | - peer identifier |
difff | - reputation increment or decrement |
duration | - amount of time to change peer reputation for |
- Returns
- - resulting peer reputation
Implemented in kagome::network::ReputationRepositoryImpl.
virtual Reputation kagome::network::ReputationRepository::reputation |
( |
const PeerId & |
peer_id | ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: