add error handling when destination does not support Mix Protocol

This commit is contained in:
akshaya
2025-07-02 10:03:12 -04:00
parent 9cedc3eaf2
commit 263bf30acd

View File

@@ -201,6 +201,9 @@ proc anonymizeLocalProtocolSend*(
let index = pubNodeInfoKeys.find(destPeerId)
if index != -1:
availableIndices.del(index)
else:
error "Destination does not support Mix"
return
for i in 0 ..< L:
if i == L - 1: