mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-25 17:36:23 -05:00
Fixed logic inversion
This commit is contained in:
parent
29e5a997ac
commit
50e939ab0e
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ class Link:
|
|||
stamp_material = owner.hash + peer_sig_pub_bytes
|
||||
value = stamp_value(stamp_material, peer_pub_bytes)
|
||||
|
||||
if RNS.Transport.LR_STAMPS_ENFORCED and stamp_valid(peer_pub_bytes, owner.get_link_cost(), stamp_material): raise ValueError(f"Insufficient link request stamp value {value}")
|
||||
if RNS.Transport.LR_STAMPS_ENFORCED and not stamp_valid(peer_pub_bytes, owner.get_link_cost(), stamp_material): raise ValueError(f"Insufficient link request stamp value {value}")
|
||||
|
||||
link = Link(owner=owner, peer_pub_bytes=peer_pub_bytes, peer_sig_pub_bytes=peer_sig_pub_bytes)
|
||||
link.set_link_id(packet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue