Commit f0a50905 authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

fix: update balance on blocklisting (#1753)

parent 6fcbd50c
......@@ -849,7 +849,7 @@ func (d *debitAction) Apply() error {
if nextBalance.Cmp(a.disconnectLimit) >= 0 {
// peer too much in debt
a.metrics.AccountingDisconnectsCount.Inc()
return p2p.NewBlockPeerError(10000*time.Hour, ErrDisconnectThresholdExceeded)
return p2p.NewBlockPeerError(24*time.Hour, ErrDisconnectThresholdExceeded)
}
return nil
......
......@@ -326,7 +326,6 @@ func (s *Service) Pay(ctx context.Context, peer swarm.Address, amount *big.Int,
if err != nil {
return nil, 0, err
}
return nil, 0, ErrDisconnectAllowanceCheckFailed
}
lastTime.Total = lastTime.Total.Add(lastTime.Total, acceptedAmount)
......
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