Browse Source

fix on_dkg_init for work on multiple IRC channels

add_frost
zebra-lucky 2 weeks ago
parent
commit
db7ec91545
  1. 3
      src/jmclient/frost_clients.py

3
src/jmclient/frost_clients.py

@ -198,7 +198,8 @@ class DKGClient:
def on_dkg_init(self, nick, pubkeyhash, session_id, sig): def on_dkg_init(self, nick, pubkeyhash, session_id, sig):
try: try:
if session_id in self.dkg_sessions: if session_id in self.dkg_sessions:
raise Exception(f'session {session_id.hex()} already exists') jlog.debug(f'session {session_id.hex()} already exists')
return None, None, None, None, None
pubkey = self.find_pubkey_by_pubkeyhash(pubkeyhash) pubkey = self.find_pubkey_by_pubkeyhash(pubkeyhash)
if not pubkey: if not pubkey:
raise Exception(f'pubkey for {pubkeyhash.hex()} not found') raise Exception(f'pubkey for {pubkeyhash.hex()} not found')

Loading…
Cancel
Save