Set maximum number of attempts in config

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2019-03-11 10:47:59 +01:00
parent 0462426b97
commit d32f81bbff
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
3 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@ FLEET=eth.beta
GROUP_CHATS_ENABLED=1 GROUP_CHATS_ENABLED=1
LOG_LEVEL_STATUS_GO= LOG_LEVEL_STATUS_GO=
LOG_LEVEL=info LOG_LEVEL=info
MAILSERVER_CONFIRMATIONS_ENABLED=0 MAILSERVER_CONFIRMATIONS_ENABLED=1
MAINNET_WARNING_ENABLED=1 MAINNET_WARNING_ENABLED=1
PFS_ENCRYPTION_ENABLED=1 PFS_ENCRYPTION_ENABLED=1
PFS_TOGGLE_VISIBLE=0 PFS_TOGGLE_VISIBLE=0

View File

@ -120,9 +120,10 @@
:LightClient true :LightClient true
:MinimumPoW 0.001 :MinimumPoW 0.001
:EnableNTPSync true} :EnableNTPSync true}
:ShhextConfig {:BackupDisabledDataDir (utils.platform/no-backup-directory) :ShhextConfig {:BackupDisabledDataDir (utils.platform/no-backup-directory)
:InstallationID installation-id :InstallationID installation-id
:MailServerConfirmations config/mailserver-confirmations-enabled? :MaxMessageDeliveryAttempts config/max-message-delivery-attempts
:MailServerConfirmations config/mailserver-confirmations-enabled?
:PFSEnabled true} :PFSEnabled true}
:RequireTopics (get-topics network)) :RequireTopics (get-topics network))

View File

@ -32,6 +32,7 @@
(def erc20-contract-warnings-enabled? (enabled? (get-config :ERC20_CONTRACT_WARNINGS))) (def erc20-contract-warnings-enabled? (enabled? (get-config :ERC20_CONTRACT_WARNINGS)))
(def partitioned-topic-enabled? (enabled? (get-config :PARTITIONED_TOPIC "0"))) (def partitioned-topic-enabled? (enabled? (get-config :PARTITIONED_TOPIC "0")))
(def tr-to-talk-enabled? (enabled? (get-config :TRIBUTE_TO_TALK 0))) (def tr-to-talk-enabled? (enabled? (get-config :TRIBUTE_TO_TALK 0)))
(def max-message-delivery-attempts (js/parseInt (get-config :MAX_MESSAGE_DELIVERY_ATTEMPTS "6")))
;; CONFIG VALUES ;; CONFIG VALUES
(def log-level (def log-level