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

Define and implement thresholds #1440

@holisticode

Description

@holisticode

Currently, the accounting module only operates through the `Add(amount int64, peer *protocols.Peer) function - it does just adds positive (credit) or negative (debit) amounts.

We need to implement thresholds so that it is possible to take action based on threshold crossing.

Refer to Figure 2 in chapter 2.1 of the SW3 paper documentation:
https://www.overleaf.com/project/59c298da5b3a6e3b7ec80d56

The following thresholds need to be implemented:

  • Payment trigger
  • Peer-ignore (in [SW3 paper defined as “disconnect threshold”)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions