This commit is contained in:
Milan Steiner 2022-02-14 12:56:00 +01:00
parent f9bcecbe20
commit a525f5200d

View File

@ -88,10 +88,8 @@ export class Webserver {
try {
await faucet.credit(address, matchingDenom);
// Count IPs to prevent draining
if (context.request.ip) {
// Count addresses to prevent draining
this.addressCounter.push({ address: address, date: Date.now() });
}
} catch (e) {
console.error(e);
throw new HttpError(500, "Sending tokens failed");