mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
Creates ExtendedAppointment as an appointment with user information
This commit is contained in:
@@ -70,16 +70,19 @@ def main(command_line_conf):
|
||||
block_processor = BlockProcessor(bitcoind_connect_params)
|
||||
carrier = Carrier(bitcoind_connect_params)
|
||||
|
||||
responder = Responder(db_manager, carrier, block_processor)
|
||||
watcher = Watcher(
|
||||
db_manager,
|
||||
gatekeeper = Gatekeeper(
|
||||
UsersDBM(config.get("USERS_DB_PATH")),
|
||||
block_processor,
|
||||
responder,
|
||||
secret_key_der,
|
||||
config.get("MAX_APPOINTMENTS"),
|
||||
config.get("DEFAULT_SLOTS"),
|
||||
config.get("DEFAULT_SUBSCRIPTION_DURATION"),
|
||||
config.get("EXPIRY_DELTA"),
|
||||
)
|
||||
|
||||
responder = Responder(db_manager, gatekeeper, carrier, block_processor)
|
||||
watcher = Watcher(
|
||||
db_manager, gatekeeper, block_processor, responder, secret_key_der, config.get("MAX_APPOINTMENTS")
|
||||
)
|
||||
|
||||
# Create the chain monitor and start monitoring the chain
|
||||
chain_monitor = ChainMonitor(
|
||||
watcher.block_queue, watcher.responder.block_queue, block_processor, bitcoind_feed_params
|
||||
@@ -151,12 +154,6 @@ def main(command_line_conf):
|
||||
# Fire the API and the ChainMonitor
|
||||
# FIXME: 92-block-data-during-bootstrap-db
|
||||
chain_monitor.monitor_chain()
|
||||
gatekeeper = Gatekeeper(
|
||||
UsersDBM(config.get("USERS_DB_PATH")),
|
||||
block_processor,
|
||||
config.get("DEFAULT_SLOTS"),
|
||||
config.get("DEFAULT_SUBSCRIPTION_DURATION"),
|
||||
)
|
||||
inspector = Inspector(block_processor, config.get("MIN_TO_SELF_DELAY"))
|
||||
API(config.get("API_BIND"), config.get("API_PORT"), inspector, watcher, gatekeeper).start()
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user