Commit 702399ce authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

fix: use our own timestamp in too soon check (#2358)

parent 8e3cde2f
......@@ -262,7 +262,7 @@ func (s *Service) Pay(ctx context.Context, peer swarm.Address, amount, checkAllo
}
currentTime := s.timeNow().Unix()
if currentTime == lastTime.Timestamp {
if currentTime == lastTime.CheckTimestamp {
return nil, 0, ErrSettlementTooSoon
}
......
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