Timeout default structure updated

This commit is contained in:
Mark Qvist 2021-12-05 11:45:13 +01:00
parent a692d29c90
commit ba39a69175
3 changed files with 10 additions and 8 deletions

View file

@ -59,6 +59,14 @@ class Reticulum:
the default value.
"""
# TODO: To reach the 300bps level without unreasonably impacting
# performance on faster links, we need a mechanism for setting
# this value more intelligently. One option could be inferring it
# from interface speed, but a better general approach would most
# probably be to let Reticulum somehow continously build a map of
# per-hop latencies and use this map for the timeout calculation.
DEFAULT_PER_HOP_TIMEOUT = 5
# Length of truncated hashes in bits.
TRUNCATED_HASHLENGTH = 80