Commit 32ccb9fc authored by metacertain's avatar metacertain Committed by GitHub

fix: seconds in overdraft blocklist (#2152)

parent 51e913e2
......@@ -1003,7 +1003,7 @@ func (d *debitAction) Apply() error {
if err != nil {
return p2p.NewBlockPeerError(1*time.Minute, ErrDisconnectThresholdExceeded)
}
return p2p.NewBlockPeerError(time.Duration(disconnectFor), ErrDisconnectThresholdExceeded)
return p2p.NewBlockPeerError(time.Duration(disconnectFor)*time.Second, ErrDisconnectThresholdExceeded)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment