6 #ifndef KAGOME_NETWORK_REPUTATIONREPOSITORY 7 #define KAGOME_NETWORK_REPUTATIONREPOSITORY 11 #include <libp2p/peer/peer_id.hpp> 49 std::chrono::seconds duration) = 0;
54 #endif // KAGOME_NETWORK_REPUTATIONREPOSITORY libp2p::peer::PeerId PeerId
virtual Reputation change(const PeerId &peer_id, ReputationChange diff)=0
virtual Reputation reputation(const PeerId &peer_id) const =0
Current peer reputation.
virtual Reputation changeForATime(const PeerId &peer_id, ReputationChange diff, std::chrono::seconds duration)=0
libp2p::peer::PeerId PeerId
virtual ~ReputationRepository()=default