mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
getTime() instead of getDate()
This commit is contained in:
parent
5f0678764b
commit
be22507caf
@ -67,7 +67,7 @@ export class Webserver {
|
||||
|
||||
const entry = this.addressCounter.get(address);
|
||||
if (entry !== undefined) {
|
||||
if (entry.getDate() + 24 * 3600 > Date.now()) {
|
||||
if (entry.getTime() + 24 * 3600 > Date.now()) {
|
||||
throw new HttpError(
|
||||
405,
|
||||
"Too many request from the same address. Blocked to prevent draining. Please wait 24h and try it again!",
|
||||
|
Loading…
x
Reference in New Issue
Block a user