Commit Graph

11 Commits

Author SHA1 Message Date
Sergi Delgado Segura
f2162b6add plugin - Improves README and defaults misbehaving_proof to empty dict 2020-05-08 19:43:08 +02:00
Sergi Delgado Segura
94e36ebeda plugin - Adds docstrings 2020-05-05 20:11:04 +02:00
Sergi Delgado Segura
f5c634ed14 plugin - repurpose invalid_appointments and adds misbehaving_proof
invalid_appointments in TowerInfo was used to stored invalid appointment responses from the tower when it was misbehaving (i.e. wrong or missing signature). However, a single item was stored since the tower is abandoned after misbehaving. data reported as invalid by the tower was not backed up.

invalid_appointments now stores the appointment rejected by the tower and reported as invalid.
misbehaving_proof stores the proof of misbehaviour by the tower (single item)
2020-05-05 17:03:31 +02:00
Sergi Delgado Segura
8704dcf2b9 plugin - defines TowerSummary as object to improve readability of the code 2020-05-05 15:22:44 +02:00
Sergi Delgado Segura
03eb67f71f plugin - Some fixes and renaming 2020-05-05 15:19:31 +02:00
Sergi Delgado Segura
7bbfd925f4 Adds invalid appointment to tower_info
Invalid appointments are those which tower signature is invalid
2020-04-29 13:11:44 +02:00
Sergi Delgado Segura
780cb5c202 pluggin - adds pending appointments to towers 2020-04-27 19:51:39 +02:00
Sergi Delgado Segura
bc5f09000a plugin - adds tower state to TowerInfo
The state flags whether the tower is reachable or not so the user can be aware of it
2020-04-27 18:23:58 +02:00
Sergi Delgado Segura
d86112d86e plugin - endpoint -> netaddr in TowerInfo and adds get_summary 2020-04-23 12:44:25 +02:00
Sergi Delgado Segura
6b025a2d9c Improves add_appointment method. Has some pending fixmes
- Start and end time have to be dealt with (changes required on the tower side)
- Sends appointments to every register tower. We may want to manage this better
2020-04-20 17:30:16 +02:00
Sergi Delgado Segura
ed8ff228d8 First commands with basic structure.
- Moves DBManager to common.
2020-04-20 17:30:15 +02:00