mirror of
https://github.com/markqvist/LXMF
synced 2026-11-27 13:52:19 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37e99910ec | ||
|
|
005d71707c | ||
|
|
1bdcf6ad53 | ||
|
|
e6021b8fed |
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
Reticulum License
|
||||||
|
|
||||||
Copyright (c) 2020 Mark Qvist / unsigned.io
|
Copyright (c) 2020-2025 Mark Qvist
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -9,8 +9,16 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||||||
copies of the Software, and to permit persons to whom the Software is
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
furnished to do so, subject to the following conditions:
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
- The Software shall not be used in any kind of system which includes amongst
|
||||||
copies or substantial portions of the Software.
|
its functions the ability to purposefully do harm to human beings.
|
||||||
|
|
||||||
|
- The Software shall not be used, directly or indirectly, in the creation of
|
||||||
|
an artificial intelligence, machine learning or language model training
|
||||||
|
dataset, including but not limited to any use that contributes to the
|
||||||
|
training or development of such a model or algorithm.
|
||||||
|
|
||||||
|
- The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
|||||||
+7
-7
@@ -1,4 +1,5 @@
|
|||||||
import time
|
import time
|
||||||
|
import threading
|
||||||
import RNS
|
import RNS
|
||||||
import RNS.vendor.umsgpack as msgpack
|
import RNS.vendor.umsgpack as msgpack
|
||||||
|
|
||||||
@@ -17,10 +18,11 @@ class LXMFDeliveryAnnounceHandler:
|
|||||||
if lxmessage.method == LXMessage.DIRECT or lxmessage.method == LXMessage.OPPORTUNISTIC:
|
if lxmessage.method == LXMessage.DIRECT or lxmessage.method == LXMessage.OPPORTUNISTIC:
|
||||||
lxmessage.next_delivery_attempt = time.time()
|
lxmessage.next_delivery_attempt = time.time()
|
||||||
|
|
||||||
while self.lxmrouter.processing_outbound:
|
def outbound_trigger():
|
||||||
time.sleep(0.1)
|
while self.lxmrouter.processing_outbound: time.sleep(0.1)
|
||||||
|
self.lxmrouter.process_outbound()
|
||||||
|
|
||||||
self.lxmrouter.process_outbound()
|
threading.Thread(target=outbound_trigger, daemon=True).start()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
stamp_cost = stamp_cost_from_app_data(app_data)
|
stamp_cost = stamp_cost_from_app_data(app_data)
|
||||||
@@ -55,10 +57,8 @@ class LXMFPropagationAnnounceHandler:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if len(data) >= 3:
|
if len(data) >= 3:
|
||||||
try:
|
try: propagation_transfer_limit = float(data[2])
|
||||||
propagation_transfer_limit = float(data[2])
|
except: propagation_transfer_limit = None
|
||||||
except:
|
|
||||||
propagation_transfer_limit = None
|
|
||||||
|
|
||||||
if destination_hash in self.lxmrouter.static_peers:
|
if destination_hash in self.lxmrouter.static_peers:
|
||||||
self.lxmrouter.peer(destination_hash, node_timebase, propagation_transfer_limit, wanted_inbound_peers)
|
self.lxmrouter.peer(destination_hash, node_timebase, propagation_transfer_limit, wanted_inbound_peers)
|
||||||
|
|||||||
+1
-2
@@ -2301,8 +2301,7 @@ class LXMRouter:
|
|||||||
else:
|
else:
|
||||||
RNS.log("Outbound processing for "+str(lxmessage)+" to "+RNS.prettyhexrep(lxmessage.get_destination().hash), RNS.LOG_DEBUG)
|
RNS.log("Outbound processing for "+str(lxmessage)+" to "+RNS.prettyhexrep(lxmessage.get_destination().hash), RNS.LOG_DEBUG)
|
||||||
|
|
||||||
if lxmessage.progress == None or lxmessage.progress < 0.01:
|
if lxmessage.progress == None or lxmessage.progress < 0.01: lxmessage.progress = 0.01
|
||||||
lxmessage.progress = 0.01
|
|
||||||
|
|
||||||
# Outbound handling for opportunistic messages
|
# Outbound handling for opportunistic messages
|
||||||
if lxmessage.method == LXMessage.OPPORTUNISTIC:
|
if lxmessage.method == LXMessage.OPPORTUNISTIC:
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
__version__ = "0.6.3"
|
__version__ = "0.7.0"
|
||||||
@@ -15,9 +15,10 @@ setuptools.setup(
|
|||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/markqvist/lxmf",
|
url="https://github.com/markqvist/lxmf",
|
||||||
packages=["LXMF", "LXMF.Utilities"],
|
packages=["LXMF", "LXMF.Utilities"],
|
||||||
|
license="Reticulum License",
|
||||||
|
license_files = ("LICENSE"),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
],
|
],
|
||||||
entry_points= {
|
entry_points= {
|
||||||
@@ -25,6 +26,6 @@ setuptools.setup(
|
|||||||
'lxmd=LXMF.Utilities.lxmd:main',
|
'lxmd=LXMF.Utilities.lxmd:main',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
install_requires=["rns>=0.9.3"],
|
install_requires=["rns>=0.9.5"],
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user