We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80c840 commit 3b96c17Copy full SHA for 3b96c17
cmd/faucet/faucet.go
@@ -506,7 +506,10 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
506
Time: time.Now(),
507
Tx: signed,
508
})
509
- f.timeouts[username] = time.Now().Add(time.Duration(*minutesFlag*int(math.Pow(3, float64(msg.Tier)))) * time.Minute)
+ timeout := time.Duration(*minutesFlag*int(math.Pow(3, float64(msg.Tier)))) * time.Minute
510
+ grace := timeout / 288 // 24h timeout => 5m grace
511
+
512
+ f.timeouts[username] = time.Now().Add(timeout - grace)
513
fund = true
514
}
515
f.lock.Unlock()
0 commit comments