From 0a0de599ddc5f65fb002ed0898787de77ea5235b Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 17 Jun 2022 15:27:31 +0200 Subject: [PATCH] Updated guide --- nomadnet/NomadNetworkApp.py | 2 +- nomadnet/ui/textui/Guide.py | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/nomadnet/NomadNetworkApp.py b/nomadnet/NomadNetworkApp.py index 57b09bf..5b24995 100644 --- a/nomadnet/NomadNetworkApp.py +++ b/nomadnet/NomadNetworkApp.py @@ -672,7 +672,7 @@ class NomadNetworkApp: if not "message_storage_limit" in self.config["node"]: self.message_storage_limit = 2 else: - value = self.config["node"].as_int("message_storage_limit") + value = self.config["node"].as_float("message_storage_limit") if value < 0.064: value = 0.064 self.message_storage_limit = value diff --git a/nomadnet/ui/textui/Guide.py b/nomadnet/ui/textui/Guide.py index 558aa0c..1bb002f 100644 --- a/nomadnet/ui/textui/Guide.py +++ b/nomadnet/ui/textui/Guide.py @@ -514,12 +514,12 @@ What color theme to use. Set it to match your terminal theme. Can be either `!da >> Node Section -This section holds configuration directives related to the node hosting. It is delimited by the `![node]`! header in the configuration file. Available directives, along with their default values, are as follows: +This section holds configuration directives related to the node hosting. It is delimited by the `![node]`! header in the configuration file. Available directives, along with example values, are as follows: >>> -`!enable_node = yes`! +`!enable_node = no`! >>>> -Determines whether the node server should be started on launch. Must be a boolean value. +Determines whether the node server should be started on launch. Must be a boolean value, and is turned off by default. < >>> @@ -552,6 +552,18 @@ Determines where the node server will look for hosted pages. Must be a readable Determines where the node server will look for downloadable files. Must be a readable filesystem path. < +>>> +`!message_storage_limit = 2`! +>>>> +Configures the maximum amount of storage, in gigabytes, the LXMF Propagation Node will use to store messages. +< + +>>> +`!prioritise_destinations = 10bc7624c27032a18639, ba780a6dff4cc1391db8`! +>>>> +Configures the LXMF Propagation Node to prioritise storing messages for certain destinations. If the message store reaches the specified limit, LXMF will prioritise keeping messages for destinations specified with this option. This setting is optional, and generally you do not need to use it. +< + >Ignoring Destinations If you encounter peers or nodes on the network, that you would rather not see in your client, you can add them to the `!~/.nomadnetwork/ignored`! file. To ignore nodes or peers, add one 20-character hexadecimal destination hash per line to the file. To unignore one again, simply remove the corresponding entry from the file and restart Nomad Network.