Commit Graph

610 Commits

Author SHA1 Message Date
Sergi Delgado
dea4a78edc Builds responder
Builds responder and adapts the rest of classes to integrate with it. Code has not been tested yet.
2019-08-09 15:00:02 +01:00
Sergi Delgado
90a1dc70e8 Separates back watcher and zmq subscriber
Separates the logic of the watcher from the subscriber for two reasons:\n - First, we should abstract the subscriber as an entity that handles the underlaying bitcoin client and feeds parsed data to pipeline that the watcher can read from. That way we can have different types of subscriber (not necessarily based on zmq).\n - Secondly, the responder will need to also receive data from the subscriber (as a different instance) to keep track of the state of the response.
2019-08-09 15:00:02 +01:00
Sergi Delgado
61bded5a23 Finishes basic watcher logic
The watcher can get appointments (containing only the locator) and find them in new generated blocks. Decryption and communication with the responder is still missing
2019-08-09 15:00:02 +01:00
Sergi Delgado
85c620b9a1 Adds dummy inspector 2019-08-09 15:00:02 +01:00
Sergi Delgado
b4d058fc62 Updates cli and api accordingly 2019-08-09 15:00:02 +01:00
Sergi Delgado
d34b94a858 Adds proper logging format 2019-08-09 15:00:02 +01:00
Sergi Delgado
8aba0f7daf Comments and sleep -> asleep 2019-08-09 15:00:02 +01:00
Sergi Delgado
803712e9b1 Improves on watcher logic.
Improves the dummy watcher logic. Sets a proper structure. Watcher can now check for potential matches and handle multiple appointments with the same locator (hash collisions).
2019-08-09 15:00:02 +01:00
Sergi Delgado
21eed576b2 Refactors tx_watcher and zmq_subscriber
Merges tx_watcher and zmq_subscriber into a single file: watcher. Watcher will handle all the watching process and container two inner classes, the watcher and the ZMQHandler
2019-08-09 15:00:02 +01:00
Sergi Delgado
39a9a92bdb pisa-btc initial commit
Contains basic structure, zmq so subscribe to blockid messages, api and so on. Still WIP
2019-08-09 15:00:02 +01:00