mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-02-08 05:25:50 +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):
|
async def __process_inbound_conn(self, conn: Connection):
|
||||||
while True:
|
while True:
|
||||||
elem = await conn.get()
|
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):
|
if isinstance(elem, bytes):
|
||||||
assert elem == build_noise_packet()
|
assert elem == build_noise_packet()
|
||||||
# Drop packet
|
# Drop packet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user