From 691a0a48a1de0f93a7421f631c89271ac2c246af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Fri, 2 Feb 2024 11:07:48 +0200 Subject: [PATCH 1/2] Reference Sirius, patch 4. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7357a3e..8c0df77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.20.7 as builder ARG CONFIG_TESTNET_TAG=T1.6.15.0 ARG CONFIG_DEVNET_TAG=D1.6.15.0 -ARG CONFIG_MAINNET_TAG=v1.6.13.0 +ARG CONFIG_MAINNET_TAG=v1.6.15.0 ARG PROXY_TESTNET_TAG=v1.1.43 ARG PROXY_DEVNET_TAG=v1.1.43 ARG PROXY_MAINNET_TAG=v1.1.43 From 5c92c252d78096c01715477a500acd02f9fa36c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Fri, 2 Feb 2024 11:08:11 +0200 Subject: [PATCH 2/2] Apply: "--operation-mode=historical-balances". --- docker-compose.yml | 20 ++++++++++++++++++++ prefs_observer.toml | 9 --------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2b5eb41..1e53c93 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ services: [ "/mainnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -53,6 +54,7 @@ services: [ "/mainnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -88,6 +90,7 @@ services: [ "/mainnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -123,6 +126,7 @@ services: [ "/mainnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -183,12 +187,15 @@ services: [ "/devnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", "--rest-api-interface=0.0.0.0:8080", "--destination-shard-as-observer=0", "--display-name=${DISPLAY_NAME_BASE:-DeepHistory}-0", + "--serialize-snapshots", + "--disable-consensus-watchdog", "--no-key" ] networks: @@ -216,12 +223,15 @@ services: [ "/devnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", "--rest-api-interface=0.0.0.0:8080", "--destination-shard-as-observer=1", "--display-name=${DISPLAY_NAME_BASE:-DeepHistory}-1", + "--serialize-snapshots", + "--disable-consensus-watchdog", "--no-key" ] networks: @@ -249,12 +259,15 @@ services: [ "/devnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", "--rest-api-interface=0.0.0.0:8080", "--destination-shard-as-observer=2", "--display-name=${DISPLAY_NAME_BASE:-DeepHistory}-2", + "--serialize-snapshots", + "--disable-consensus-watchdog", "--no-key" ] networks: @@ -282,12 +295,15 @@ services: [ "/devnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", "--rest-api-interface=0.0.0.0:8080", "--destination-shard-as-observer=metachain", "--display-name=${DISPLAY_NAME_BASE:-DeepHistory}-metachain", + "--serialize-snapshots", + "--disable-consensus-watchdog", "--no-key" ] networks: @@ -340,6 +356,7 @@ services: [ "/testnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -375,6 +392,7 @@ services: [ "/testnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -410,6 +428,7 @@ services: [ "/testnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", @@ -445,6 +464,7 @@ services: [ "/testnet/node/node", "--working-directory=/data", + "--operation-mode=historical-balances", "--log-save", "--log-level=*:DEBUG", "--log-logger-name", diff --git a/prefs_observer.toml b/prefs_observer.toml index 18970a2..102506b 100644 --- a/prefs_observer.toml +++ b/prefs_observer.toml @@ -1,14 +1,5 @@ [Preferences] - FullArchive = true - OverridableConfigTomlValues = [ - { File = "config.toml", Path = "GeneralSettings.StartInEpochEnabled", Value = "false" }, - { File = "config.toml", Path = "DbLookupExtensions.Enabled", Value = "true" }, - { File = "config.toml", Path = "StateTriesConfig.AccountsStatePruningEnabled", Value = "false" }, - { File = "config.toml", Path = "StateTriesConfig.SnapshotsEnabled", Value = "true" }, - { File = "config.toml", Path = "StoragePruning.ObserverCleanOldEpochsData", Value = "false" }, - { File = "config.toml", Path = "StoragePruning.AccountsTrieCleanOldEpochsData", Value = "false" }, - { File = "config.toml", Path = "StateTriesConfig.PeerStatePruningEnabled", Value = "true" }, { File = "config.toml", Path = "WebServerAntiflood.SimultaneousRequests", Value = "256" }, { File = "config.toml", Path = "WebServerAntiflood.TrieOperationsDeadlineMilliseconds", Value = "300000" } ]