Skip to content

QuantumGate::Access::Manager::ResetAddressReputation

Karel Donk edited this page Dec 25, 2021 · 1 revision

Resets the reputation score for an address to the maximum positive value (QuantumGate::Access::AddressReputation::ScoreLimits::Maximum). The local instance should already be maintaining the reputation of the given address or else the call will fail. You can use the SetAddressReputation function to add an address. QuantumGate automatically adds addresses and maintains their reputation as soon as a peer connects to the local instance.

Signature

  1. Result<> ResetAddressReputation(const WChar* addr_str) noexcept;
  2. Result<> ResetAddressReputation(const String& addr_str) noexcept;
  3. Result<> ResetAddressReputation(const Address& addr) noexcept;

Parameters

Name Description
addr_str A QuantumGate::String or pointer to QuantumGate::WChar string containing the address for which to reset the reputation score.
addr A QuantumGate::Address containing the address for which to reset the reputation score.

Return values

Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::AddressInvalid The operation failed because the address is invalid.
QuantumGate::ResultCode::AddressNotFound The operation failed because the address was not found.
Clone this wiki locally