-
Notifications
You must be signed in to change notification settings - Fork 23
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.
-
Result<> ResetAddressReputation(const WChar* addr_str) noexcept;
-
Result<> ResetAddressReputation(const String& addr_str) noexcept;
-
Result<> ResetAddressReputation(const Address& addr) noexcept;
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. |
Returns a QuantumGate::Result
object equal to one of the following QuantumGate::ResultCode
s:
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. |