Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
swap: fix and update resetBalance function comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mortelli authored and holisticode committed Aug 26, 2019
1 parent de2d4b5 commit ffbabac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swap/swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ func (s *Swap) Close() {
}

// resetBalance is called:
// * for the creditor: on cheque receival
// * for the debitor: on confirmation receival
// * for the creditor: upon receiving the cheque
// * for the debitor: after sending the cheque
func (s *Swap) resetBalance(peerID enode.ID, amount int64) error {
log.Debug("resetting balance for peer", "peer", peerID.String(), "amount", amount)
_, err := s.updateBalance(peerID, amount)
Expand Down

0 comments on commit ffbabac

Please sign in to comment.