Add 5 minute grace period to faucet timeout

This commit is contained in:
wbt 2018-11-14 16:31:18 -05:00 committed by Péter Szilágyi
parent b80c840af3
commit 35efe8d8f4
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -506,7 +506,7 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
Time: time.Now(),
Tx: signed,
})
f.timeouts[username] = time.Now().Add(time.Duration(*minutesFlag*int(math.Pow(3, float64(msg.Tier)))) * time.Minute)
f.timeouts[username] = time.Now().Add(time.Duration(*minutesFlag*int(math.Pow(3, float64(msg.Tier)))-5) * time.Minute)
fund = true
}
f.lock.Unlock()