add comment

This commit is contained in:
Youngjoon Lee 2024-06-26 17:12:50 +09:00
parent 9f58a72d4d
commit 28b5055278
No known key found for this signature in database
GPG Key ID: 09B750B5BD6F08A2

View File

@ -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