mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
try to get a 32 bytes key in send_msg_with_retry
This commit is contained in:
parent
1de435e46d
commit
5571fef670
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ class MessagingCommands(CommandHandlerBase):
|
|||
flood_attempts = 0
|
||||
if not contact is None :
|
||||
flood = contact["out_path_len"] == -1
|
||||
if len(dst_bytes) < 32:
|
||||
# if we have a contact, then we can get a 32 bytes key !
|
||||
dst_bytes = _validate_destination(contact, prefix_length=32)
|
||||
else:
|
||||
# we can't know if we're flood without fetching all contacts
|
||||
# if we have a full key (meaning we can reset path) consider direct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue