mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-02-01 10:06:10 +00:00
add comment
This commit is contained in:
parent
9f58a72d4d
commit
28b5055278
@ -98,6 +98,9 @@ class MixGossipChannel:
|
||||
async def __process_inbound_conn(self, conn: Connection):
|
||||
while True:
|
||||
elem = await conn.get()
|
||||
# In practice, data transmitted through connections is going to be always 'bytes'.
|
||||
# But here, we use the SphinxPacket type explicitly for simplicity
|
||||
# without implementing serde for SphinxPacket.
|
||||
if isinstance(elem, bytes):
|
||||
assert elem == build_noise_packet()
|
||||
# Drop packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user