mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
Removes start/end_time from plugin
This commit is contained in:
@@ -154,16 +154,9 @@ def get_appointment(plugin, *args):
|
||||
@plugin.hook("commitment_revocation")
|
||||
def add_appointment(plugin, **kwargs):
|
||||
try:
|
||||
# FIXME: start_time and end_time are temporary. Fix it on the tower side and remove it from there
|
||||
block_height = plugin.rpc.getchaininfo().get("blockcount")
|
||||
start_time = block_height + 1
|
||||
end_time = block_height + 10
|
||||
|
||||
commitment_txid, penalty_tx = arg_parser.parse_add_appointment_arguments(kwargs)
|
||||
appointment = Appointment(
|
||||
locator=compute_locator(commitment_txid),
|
||||
start_time=start_time,
|
||||
end_time=end_time,
|
||||
to_self_delay=20,
|
||||
encrypted_blob=Cryptographer.encrypt(penalty_tx, commitment_txid),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user