Splits add_appointment so it can also be used by the Retrier

- The appointment constructions is left in Watchtower (via on_commit_revocation method)
- The tower interaction is moved to net/http so it can be reused
- Adds missing logic for invalid resposes by the tower (e.g invalid signatures)
This commit is contained in:
Sergi Delgado Segura
2020-04-29 13:12:21 +02:00
parent 7bbfd925f4
commit 43217874b5
3 changed files with 101 additions and 53 deletions

View File

@@ -1,3 +1,4 @@
[teos]
api_port = 9814
max_retries = 30