Sergi Delgado Segura
4848b9a058
Updates cleaner to use db batch updates
2020-01-31 12:53:38 +01:00
Sergi Delgado Segura
6884db9f58
Updates logger codebase-wise to match the Logger updates
...
Logger instances now specify the logger prefix so the logger can be properly loaded, fixing the issues with the cli file logger
2020-01-23 18:16:25 +01:00
Sergi Delgado Segura
03f0a270d8
Modifies when the flag is cleared
...
Now the only time a triggered flag has to be cleared is when a tracker is removed, otherwise the flag is never created.
2020-01-22 16:24:32 +01:00
Sergi Delgado Segura
fd6c85ced2
Moves logs to be consistent with the rest of db logs. Adds missing docs and adds an exception if the db is alredy being used
2020-01-22 15:21:55 +01:00
Sergi Delgado Segura
5ead43163c
Refactors Cleaner to improve its modularity and fixes some small bugs
...
- Improves code modularity.
- Separates flag_triggered from delete_appointment, which was pretty misleading (and causing some minor bugs) and make them work with lists intead of single objects.
- Removes unused import
2020-01-21 19:06:51 +01:00
Sergi Delgado Segura
dad70eb780
Moves update_delete_locator_map functionality to its own method.
2020-01-17 17:47:05 +01:00
Sergi Delgado Segura
5196f5df29
Removes most appointment data from memory
...
Data used to be stored both in memory and disk (db). This commits modifies the Watcher, Responder and Cleaner so they only keep the needed maps and load information from disk when necessary.
2020-01-09 18:18:26 +01:00
Sergi Delgado Segura
1184b4648a
Fixes logs and removes redundant tailing dots
2019-12-16 19:45:30 +01:00
Sergi Delgado Segura
77b191dde2
Moves Logger to common
2019-12-16 14:15:30 +01:00
Sergi Delgado Segura
e2ca226b11
Last formatting details troughout the codebase
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
d881706eb3
Refactors the codebase to match the new naming from 793d563b8c053136dd5f936b0ef0cd88af215b06 and 3046eae38ee3f34857c96e6b9d43e645f7d2de2d
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
df5dcbdfe9
Renames dispute_delta to to_self_delay and justice tx to penalty tx
...
Uses the naming convention followed by LN implementations and BOLTs
2019-12-11 12:45:05 +01:00
Sergi Delgado Segura
2cdd78b8e6
Simplifies the Cleaner and adds docstrings
...
We were passing some unnecessary parameters to the Cleaner (locator) that could be derived from other data (uuid and appointments). Also standarises the order of the parameters to match the rest of the methods
2019-12-10 13:31:42 +01:00
Sergi Delgado Segura
add5d262b6
Includes Appointment docstrings and redesigns triggered flag
...
The triggered flag is only used to interact with the DB but it was kept as an Appointment attribute. Now it is only used when exporting to json, which is used to store data into the db.
2019-12-09 14:36:16 +01:00
Sergi Delgado Segura
5f7cd7e189
Delete old TODOs
2019-12-05 11:34:44 +01:00
Sergi Delgado Segura
3c6f13ef00
Rename delete_completed_appointments and rearange arguments
2019-11-11 13:27:57 +00:00
Sergi Delgado Segura
8b2f0efa2f
Moves appointment deletion + db update to the cleaner
2019-11-07 19:16:05 +00:00
Sergi Delgado Segura
20f296c9d4
Reformats code to match code guidelines
2019-11-07 15:47:35 +00:00
Sergi Delgado Segura
31afb1373a
Integrates the locator map dumping to the Watcher and Cleaner
2019-11-06 17:08:42 +00:00
Sergi Delgado Segura
f61474216c
Fixes and tests updates
...
Updates tests so they run with the db_manager and fixes some bugs introduced in d7d42c9.
2019-10-28 14:49:40 -07:00
Sergi Delgado Segura
a0538739d2
Starts data persistence integration
...
The difference between master and the old data-persistence branch was huge, seems more effective to manually cherry pick the changes and integrate them
2019-10-28 14:38:50 -07:00
Salvatore Ingala
aea1d1f1e0
Fixes from PR review
2019-10-10 11:07:58 +07:00
Salvatore Ingala
dee93e5c62
Moved StructuredMessage and Logger to separate file; refactored pisa-cli logging using new format
2019-10-10 09:59:11 +07:00
Salvatore Ingala
bae9b6b913
Added Logger class; refactored logging accordingly
2019-10-10 09:59:10 +07:00
Salvatore Ingala
2a5dd48950
PEP8 linting
2019-10-10 09:58:27 +07:00
Salvatore Ingala
ed0cb4f632
Changed log format to JSON; fixed missing return value in get_potential_matches
2019-10-10 09:58:27 +07:00
Sergi Delgado Segura
1e18630ce2
Adds Cleaner tests. Fixes Cleaner, Watcher and Responder
...
There is no need to return the dictionaries modified by the client since they are "passed-by-reference" in Python.
2019-10-04 17:23:45 +01:00
Sergi Delgado Segura
5ba6fcb9ef
Improves modularity of the code
...
Adds cleaner and block processor to increase the modularity and reuse of the code
2019-10-03 11:49:24 +01:00