Skip to content

Commit

Permalink
updates nip46 signer
Browse files Browse the repository at this point in the history
comm_k can be different to the signer pub_k
access to the underlying client to get the status of comms
start the msg quene on run!
  • Loading branch information
monty committed Jul 9, 2024
1 parent efdfa7b commit 43f503a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/monstr/signing/nip46.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(self,
# events queued and dealt with serially as they come in
self._event_q: asyncio.Queue = asyncio.Queue()
# start a process to work on the queued events
self._event_process_task = asyncio.create_task(self._my_event_consumer())
self._event_process_task = None

# called when we see method events - most likely when we're acting as signer
self._on_command = on_command
Expand Down Expand Up @@ -243,6 +243,7 @@ def on_connect(my_client: Client):

self._client.set_on_connect(on_connect)
self._client.set_on_status(on_status)
asyncio.create_task(self._my_event_consumer())
asyncio.create_task(self._client.run())

return self._client
Expand Down

0 comments on commit 43f503a

Please sign in to comment.