Reset RPC min broadcast ID when node module resets

Otherwise, bridge module will ignore events until new broadcast ID
catches up to the old one
This commit is contained in:
Andrew Ferrazzutti 2022-04-13 03:47:27 -04:00
parent b29453a871
commit d843fcf5d2
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ class RPCClient:
self._on_disconnect() self._on_disconnect()
def _on_disconnect(self) -> None: def _on_disconnect(self) -> None:
self._req_id = 0
self._min_broadcast_id = 0
self._reader = None self._reader = None
self._writer = None self._writer = None
self._is_connected.clear() self._is_connected.clear()