Skip to content
Draft
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
03711f8
Uses codexConfig to mange codex-related files
marcinczenko Oct 31, 2025
0d3cb52
use param.CodexConfig instead of codex.Config
marcinczenko Oct 31, 2025
bcbaca7
Rough version of the integration test
marcinczenko Oct 31, 2025
3bbe1c7
draft of codex_config sql table with update node_config code
marcinczenko Oct 31, 2025
2d83cb5
updates the way the distribution preference is handled
marcinczenko Oct 31, 2025
956fc0c
adds triggering downloading and importing archives from Codex after j…
marcinczenko Oct 31, 2025
2a034ef
linting
marcinczenko Nov 1, 2025
c59a3da
Add API to update the message archive interval
2-towns Nov 2, 2025
168f78b
Extend test to check CodexConfig and ensure it is loaded properly
2-towns Nov 3, 2025
ac3c735
Add missing local property
2-towns Nov 3, 2025
02f8f2a
separates libcodex datadir from history archive data dir
marcinczenko Nov 3, 2025
85ac523
adds more logging to the archive downloader integration test
marcinczenko Nov 3, 2025
4182402
use filepath.Join to construct codex paths
marcinczenko Nov 3, 2025
ade0d07
updates node_config tests
marcinczenko Nov 3, 2025
51b19f2
Fetch the lib codex version based on the Go dependency
2-towns Nov 3, 2025
e9ec381
Update codex lib and use exists function to check cid existence
2-towns Nov 3, 2025
74e9947
Update codex version in nix configuration
2-towns Nov 3, 2025
a2d7cdd
Update nix hashes for v0.0.25
2-towns Nov 3, 2025
126a97d
Updates archive downloader integration test to again catch local down…
marcinczenko Nov 3, 2025
d5c49b8
Add test for HandleHistoryArchiveIndexCidMessage and fix IsReady
2-towns Nov 3, 2025
0ba4e11
global node-wide archive distribution preference
marcinczenko Nov 3, 2025
9191312
updates test in message_handler_test.go after changing preference dis…
marcinczenko Nov 3, 2025
9885e07
updates .gitignore
marcinczenko Nov 3, 2025
2ef1f59
Update codex lib version
2-towns Nov 3, 2025
a178478
updates linting
marcinczenko Nov 3, 2025
fa0836d
fix: messageArchiveInterval RPC param in seconds
emizzle Nov 4, 2025
792fd8f
updates API commands return values
marcinczenko Nov 4, 2025
6d4fcd7
[get/update]MessageArchiveInterval returns value in seconds + a bit o…
marcinczenko Nov 4, 2025
beda7df
bug fix - archive id not saved to db after being downloaded
marcinczenko Nov 4, 2025
890bb23
bug fix - ensure community archive directory exists in the Download path
marcinczenko Nov 5, 2025
bd2da9f
tests DownloadHistoryArchivesByIndexCid emits the signals as expected
marcinczenko Nov 5, 2025
9322593
various bug fixes and improvements
marcinczenko Nov 5, 2025
2cc4f52
add proper launch config for debugging
marcinczenko Nov 6, 2025
35b086b
add more assertions for archive downloading
marcinczenko Nov 6, 2025
65e66b3
make start/stop of CodexClient more thread safe and ensure uniqueness…
marcinczenko Nov 6, 2025
dccdd7d
widens the integration tests so that full downloadAndImportCodexHisto…
marcinczenko Nov 6, 2025
9d5eb34
more selective readiness control (bug fix) and bigger integration tes…
marcinczenko Nov 6, 2025
51cd825
respect distribution preference in InitHistoryArchiveTasks and Create…
marcinczenko Nov 6, 2025
169dd52
minor fix - more consistent seeding behavior for codex
marcinczenko Nov 6, 2025
fb42076
Use UniversalChatID to get the universal content topic instead of loo…
2-towns Nov 6, 2025
783395e
Add integration test for codex archive
2-towns Nov 6, 2025
6c06722
Increase timeout for archive test
2-towns Nov 6, 2025
fa6efed
removes removing index files from UnseedHistoryArchiveIndexCid
marcinczenko Nov 6, 2025
dece6ab
Makes (re)seeding of Codex index Cid more consistent
marcinczenko Nov 6, 2025
dba2e0e
Use isReady in CreateCommunity as more conservative check
marcinczenko Nov 6, 2025
4604de5
Updates community filters and topics
marcinczenko Nov 6, 2025
3799e28
allow archive download retry also for codex
marcinczenko Nov 7, 2025
41e7d4e
Use UniversalChatID to dispatch archive message instead of Magnetlink…
2-towns Nov 7, 2025
d8dc074
Improve archive functional test
2-towns Nov 7, 2025
c4b398f
Fix archive integration test
2-towns Nov 7, 2025
c4f5074
Improves the healthcheck so that the tests start as soon as possible
marcinczenko Nov 9, 2025
6c352b2
Adds more logs and makes the easier to find thanks to [CODEX] prefix …
marcinczenko Nov 9, 2025
7c5cc6f
adds even more logging
marcinczenko Nov 10, 2025
ee1b8b9
adds a compact document attempting to explain filters and topics
marcinczenko Nov 10, 2025
e019c96
fixes linting
marcinczenko Nov 10, 2025
5d23537
Improve functional test
2-towns Nov 10, 2025
6ebd8e6
Try to reduce store-message-retention-policy
2-towns Nov 10, 2025
bfe46a4
Provide better timeout
2-towns Nov 11, 2025
e48a5b1
Update Go bindings to the latest version
2-towns Nov 11, 2025
97ae5c5
improves test chronology and adds logging
marcinczenko Nov 11, 2025
066488e
more consistent issuing of the HistoryArchivesSeedingSignal + other s…
marcinczenko Nov 11, 2025
efe07ce
Add archive test using community default chat
2-towns Nov 12, 2025
ee22f35
Fix snake case for historyArchiveSupportEnabled
2-towns Nov 12, 2025
f8a2a6a
Add more tests
2-towns Nov 13, 2025
bf00670
Add codex_config_bootstrap_node configuration
2-towns Nov 13, 2025
3924218
chore: update codex version
2-towns Nov 14, 2025
083cb24
chore: still updating codex version
2-towns Nov 14, 2025
2451290
chore: disable codex discovery port random
2-towns Nov 14, 2025
e5e43ea
chore: add a test to check if the archive is downloaded after logout …
2-towns Nov 14, 2025
5fefb80
adds more logs to SetOnline
marcinczenko Nov 14, 2025
6a65ed5
remove ensureCodexDiscoveryPort
marcinczenko Nov 14, 2025
5ae72d3
passing CodexNode config via EnableCodexCommunityHistoryArchiveProtocol
marcinczenko Nov 14, 2025
64f21b1
extracts CodexConfig overrides to a separate module
marcinczenko Nov 14, 2025
b2316d4
version without index and index cid files
marcinczenko Nov 12, 2025
41186b3
Add more comments
2-towns Nov 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,8 @@ pkg/sentry/SENTRY_PRODUCTION
!vendor/**/migrations.go

# Libs directory (Codex)
libs
libs
coverage_merged.out
test_0.coverage.out
test-coverage.html
api/pre_login.log
100 changes: 100 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Current Test",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"args": ["-test.v", "-test.run", "^${selectedText}$"],
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
},
{
"name": "Debug Current Test Function",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
},
{
"name": "Debug All Tests in Current File",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"args": ["-test.v"],
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
},
{
"name": "Debug All Tests in Current Package",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"args": ["-test.v", "-count=1"],
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
},
{
"name": "Debug Specific Test Suite (e.g., TestMessengerCommunitiesTokenPermissionsSuite)",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/protocol",
"args": [
"-test.v",
"-test.run",
"TestMessengerCommunitiesTokenPermissionsSuite"
],
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
},
{
"name": "Debug Specific Test Case",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/protocol",
"args": [
"-test.v",
"-test.run",
"TestMessengerCommunitiesTokenPermissionsSuite/TestFullCodexIntegration",
"-count=1"
],
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
},
{
"name": "Debug Mock Tests (Codex)",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/protocol/communities",
"args": ["-test.v", "-test.run", "TestMock"],
"buildFlags": "-tags=gowaku_no_rln,gowaku_skip_migrations",
"env": {
"CGO_ENABLED": "1"
}
}
]
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ else
CODEX_OS := $(detected_OS)
endif

CODEX_VERSION ?= "v0.0.24"
CODEX_VERSION := $(shell go list -m -f '{{.Version}}' github.com/codex-storage/codex-go-bindings 2>/dev/null)
CODEX_DOWNLOAD_URL := "https://github.com/codex-storage/codex-go-bindings/releases/download/$(CODEX_VERSION)/codex-${CODEX_OS}-${CODEX_ARCH}.zip"

fetch-libcodex:
Expand Down Expand Up @@ -432,7 +432,7 @@ lint-panics: generate
lint: generate lint-panics
$(CGO_ENV) golangci-lint --build-tags '$(BUILD_TAGS)' run ./...

clean: ##@other Cleanup
clean: clean-libcodex | ##@other Cleanup
rm -fr build/bin/*

git-clean:
Expand Down
1 change: 1 addition & 0 deletions api/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,7 @@ func TestRestoreKeycardAccountAndLogin(t *testing.T) {
},
"torrentConfigEnabled": false,
"torrentConfigPort": 0,
"codexConfigEnabled": false,
"keycardInstanceUID": "a84599394887b742eed9a99d3834a797",
"keycardPairingDataFile": path.Join(tmpdir, DefaultKeycardPairingDataFileRelativePath),
},
Expand Down
19 changes: 10 additions & 9 deletions api/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ import (

func setupConfigs() (*params.NodeConfig, *requests.APIConfig) {
newNodeConfig := &params.NodeConfig{
APIModules: "test, eth, wakuv2",
ConnectorConfig: params.ConnectorConfig{Enabled: true},
HTTPEnabled: true,
HTTPHost: "0.0.0.0",
HTTPPort: 8545,
HTTPVirtualHosts: []string{"status-go"},
WSEnabled: false,
WSHost: "127.0.0.1",
WSPort: 8586,
APIModules: "test, eth, wakuv2",
ConnectorConfig: params.ConnectorConfig{Enabled: true},
HTTPEnabled: true,
HTTPHost: "0.0.0.0",
HTTPPort: 8545,
HTTPVirtualHosts: []string{"status-go"},
WSEnabled: false,
WSHost: "127.0.0.1",
WSPort: 8586,
HistoryArchiveDistributionPreference: params.DefaultHistoryArchiveDistributionPreference,
}

apiConfig := &requests.APIConfig{
Expand Down
23 changes: 19 additions & 4 deletions api/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ func DefaultNodeConfig(installationID, keyUID string, request *requests.CreateAc
nodeConfig.LogEnabled = false
}

nodeConfig.HistoryArchiveDistributionPreference = params.DefaultHistoryArchiveDistributionPreference

if request.TestOverrideNetworks != nil {
nodeConfig.Networks = request.TestOverrideNetworks
} else {
Expand Down Expand Up @@ -343,18 +345,31 @@ func DefaultNodeConfig(installationID, keyUID string, request *requests.CreateAc

if request.TorrentConfigEnabled != nil {
nodeConfig.TorrentConfig.Enabled = *request.TorrentConfigEnabled

}
if request.TorrentConfigPort != nil {
nodeConfig.TorrentConfig.Port = *request.TorrentConfigPort
}

if request.CodexConfigEnabled != nil {
nodeConfig.CodexConfig.Enabled = *request.CodexConfigEnabled
}

if request.ImportInitialDelay != nil {
nodeConfig.ImportInitialDelay = *request.ImportInitialDelay
}

if request.MessageArchiveInterval != nil {
nodeConfig.MessageArchiveInterval = *request.MessageArchiveInterval
}

nodeConfig.CodexConfig = params.CodexConfig{
Enabled: false,
Config: codex.Config{
DataDir: filepath.Join(nodeConfig.RootDataDir, params.ArchivesRelativePath),
Enabled: nodeConfig.CodexConfig.Enabled,
HistoryArchiveDataDir: filepath.Join(nodeConfig.RootDataDir, "codex", "archivedata"),
CodexNodeConfig: codex.Config{
DataDir: filepath.Join(nodeConfig.RootDataDir, "codex", "codexdata"),
BlockRetries: params.BlockRetries,
MetricsEnabled: false,
LogFormat: codex.LogFormatNoColors,
},
}

Expand Down
5 changes: 3 additions & 2 deletions api/geth_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func (b *GethStatusBackend) workaroundToFixBadMigration(request *requests.Login)
if currentConf.NetworkID == 0 &&
currentConf.NodeKey == "" {
// check if exist old node config
oldNodeConf := &params.NodeConfig{}
oldNodeConf := &params.NodeConfig{HistoryArchiveDistributionPreference: params.DefaultHistoryArchiveDistributionPreference}
err = b.appDB.QueryRow("SELECT node_config FROM settings WHERE synthetic_id = 'id'").Scan(&sqlite.JSONBlob{Data: oldNodeConf})
if err != nil && err != sql.ErrNoRows {
return err
Expand Down Expand Up @@ -692,7 +692,8 @@ func (b *GethStatusBackend) loginAccount(request *requests.Login) error {

defaultCfg := &params.NodeConfig{
// why we need this? relate PR: https://github.com/status-im/status-go/pull/4014
KeycardPairingDataFile: filepath.Join(b.rootDataDir, DefaultKeycardPairingDataFileRelativePath),
KeycardPairingDataFile: filepath.Join(b.rootDataDir, DefaultKeycardPairingDataFileRelativePath),
HistoryArchiveDistributionPreference: params.DefaultHistoryArchiveDistributionPreference,
}

defaultCfg.WalletConfig = buildWalletConfig(&request.WalletConfig, &request.WalletSecretsConfig)
Expand Down

This file was deleted.

29 changes: 29 additions & 0 deletions appdatabase/migrations/sql/1761913234_add_codex_config.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
CREATE TABLE codex_config (
enabled BOOLEAN DEFAULT false,
history_archive_data_dir VARCHAR NOT NULL,
log_level TEXT DEFAULT 'info',
log_format TEXT DEFAULT 'auto',
metrics_enabled BOOLEAN DEFAULT false,
metrics_address TEXT DEFAULT '127.0.0.1',
metrics_port INTEGER DEFAULT 9090,
data_dir VARCHAR NOT NULL,
listen_addrs TEXT DEFAULT '["/ip4/0.0.0.0/tcp/0"]',
nat TEXT DEFAULT 'any',
disc_port INTEGER DEFAULT 8090,
net_privkey TEXT DEFAULT 'key',
bootstrap_nodes TEXT,
max_peers INTEGER DEFAULT 160,
num_threads INTEGER DEFAULT 0,
agent_string TEXT DEFAULT 'Codex',
repo_kind TEXT DEFAULT 'fs',
storage_quota INTEGER DEFAULT 21474836480, -- 20 GiB
block_ttl INTEGER DEFAULT 2592000, -- 30 days
block_maintenance_interval INTEGER DEFAULT 600, -- 10 min
block_maintenance_number_of_blocks INTEGER DEFAULT 1000,
block_retries INTEGER DEFAULT 3000,
cache_size INTEGER DEFAULT 0,
log_file TEXT DEFAULT '',

synthetic_id VARCHAR DEFAULT 'id' PRIMARY KEY
) WITHOUT ROWID;

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE node_config
ADD COLUMN history_archive_distribution_preference TEXT DEFAULT 'codex';
43 changes: 28 additions & 15 deletions appdatabase/node_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"sort"
"testing"

"github.com/codex-storage/codex-go-bindings/codex"
"github.com/stretchr/testify/require"

"github.com/status-im/status-go/nodecfg"
Expand All @@ -26,21 +27,22 @@ func setupTestDB(t *testing.T) *sql.DB {

func randomNodeConfig() *params.NodeConfig {
return &params.NodeConfig{
NetworkID: uint64(int64(randomInt(math.MaxInt64))),
NodeKey: randomString(),
APIModules: randomString(),
WalletConfig: params.WalletConfig{Enabled: randomBool()},
BrowsersConfig: params.BrowsersConfig{Enabled: randomBool()},
PermissionsConfig: params.PermissionsConfig{Enabled: randomBool()},
ConnectorConfig: params.ConnectorConfig{Enabled: randomBool()},
LogEnabled: randomBool(),
LogDir: randomString(),
LogFile: randomString(),
LogLevel: randomString(),
LogMaxBackups: randomInt(math.MaxInt64),
LogMaxSize: randomInt(math.MaxInt64),
LogCompressRotated: randomBool(),
LogToStderr: randomBool(),
NetworkID: uint64(int64(randomInt(math.MaxInt64))),
NodeKey: randomString(),
APIModules: randomString(),
WalletConfig: params.WalletConfig{Enabled: randomBool()},
BrowsersConfig: params.BrowsersConfig{Enabled: randomBool()},
PermissionsConfig: params.PermissionsConfig{Enabled: randomBool()},
ConnectorConfig: params.ConnectorConfig{Enabled: randomBool()},
HistoryArchiveDistributionPreference: randomString(),
LogEnabled: randomBool(),
LogDir: randomString(),
LogFile: randomString(),
LogLevel: randomString(),
LogMaxBackups: randomInt(math.MaxInt64),
LogMaxSize: randomInt(math.MaxInt64),
LogCompressRotated: randomBool(),
LogToStderr: randomBool(),
ClusterConfig: params.ClusterConfig{
Enabled: randomBool(),
Fleet: randomString(),
Expand All @@ -55,6 +57,16 @@ func randomNodeConfig() *params.NodeConfig {
WakuV2Config: params.WakuV2Config{
LightClient: randomBool(),
},
CodexConfig: params.CodexConfig{
Enabled: randomBool(),
HistoryArchiveDataDir: randomString(),
CodexNodeConfig: codex.Config{
DataDir: randomString(),
DiscoveryPort: randomInt(65535),
BlockRetries: randomInt(10),
LogLevel: randomString(),
},
},
}
}

Expand All @@ -66,6 +78,7 @@ func TestGetNodeConfig(t *testing.T) {

dbNodeConfig, err := nodecfg.GetNodeConfigFromDB(db)
require.NoError(t, err)

require.Equal(t, nodeConfig, dbNodeConfig)
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ require (
github.com/btcsuite/btcd/btcutil v1.1.6
github.com/cenkalti/backoff/v4 v4.2.1
github.com/cockroachdb/errors v1.11.3
github.com/codex-storage/codex-go-bindings v0.0.24
github.com/codex-storage/codex-go-bindings v0.0.26
github.com/getsentry/sentry-go v0.29.1
github.com/golang-migrate/migrate/v4 v4.15.2
github.com/gorilla/sessions v1.2.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/codex-storage/codex-go-bindings v0.0.24 h1:uUlLiUf5zuec34AvtzpAr4BOCE71FuxqTMBholMR86M=
github.com/codex-storage/codex-go-bindings v0.0.24/go.mod h1:hP/n9iDZqQP4MytkgUepl3yMMsZy5Jbk9lQbbbVJ51Q=
github.com/codex-storage/codex-go-bindings v0.0.26 h1:v7PgwJq+dTb7YF4i19Dgx7iHJv+frqDbO9AP7qh2N1k=
github.com/codex-storage/codex-go-bindings v0.0.26/go.mod h1:hP/n9iDZqQP4MytkgUepl3yMMsZy5Jbk9lQbbbVJ51Q=
github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/3mZuaj6Sj+PqrmIquiOKy397AKGThQPaGzNXAQ=
github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q=
github.com/consensys/gnark-crypto v0.18.0 h1:vIye/FqI50VeAr0B3dx+YjeIvmc3LWz4yEfbWBpTUf0=
Expand Down
2 changes: 1 addition & 1 deletion multiaccounts/accounts/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestMoveWalletAccount(t *testing.T) {
setting := settings.Settings{
Networks: &networks,
}
config := params.NodeConfig{}
config := params.NodeConfig{HistoryArchiveDistributionPreference: params.DefaultHistoryArchiveDistributionPreference}
err := db.CreateSettings(setting, config)
require.NoError(t, err)

Expand Down
3 changes: 2 additions & 1 deletion multiaccounts/settings/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import (

var (
config = params.NodeConfig{
NetworkID: 10,
NetworkID: 10,
HistoryArchiveDistributionPreference: params.DefaultHistoryArchiveDistributionPreference,
}

networks = json.RawMessage("{}")
Expand Down
5 changes: 3 additions & 2 deletions multiaccounts/settings_wallet/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import (

var (
config = params.NodeConfig{
NetworkID: 10,
RootDataDir: "test",
NetworkID: 10,
RootDataDir: "test",
HistoryArchiveDistributionPreference: params.DefaultHistoryArchiveDistributionPreference,
}
networks = json.RawMessage("{}")
settingsObj = settings.Settings{
Expand Down
Loading
Loading