plugin - Adds start_block log after an accepted appointment

This commit is contained in:
Sergi Delgado Segura
2020-06-12 12:10:57 +02:00
parent 4c66d6c2cd
commit 5748c73da3

View File

@@ -18,6 +18,7 @@ def add_appointment(plugin, tower_id, tower, appointment_dict, signature):
response = send_appointment(tower_id, tower, appointment_dict, signature) response = send_appointment(tower_id, tower, appointment_dict, signature)
plugin.log(f"Appointment accepted and signed by {tower_id}") plugin.log(f"Appointment accepted and signed by {tower_id}")
plugin.log(f"Remaining slots: {response.get('available_slots')}") plugin.log(f"Remaining slots: {response.get('available_slots')}")
plugin.log(f"Start block: {response.get('start_block')}")
# # TODO: Not storing the whole appointments for now. The node can recreate all the data if needed. # # TODO: Not storing the whole appointments for now. The node can recreate all the data if needed.
# # DISCUSS: It may be worth checking that the available slots match instead of blindly trusting. # # DISCUSS: It may be worth checking that the available slots match instead of blindly trusting.