From 123c5a482be65de544a8e4572a1f2a9e2efbd86c Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:47:06 +1100 Subject: [PATCH 1/8] chore: bump nim-codex to prototype release branch --- vendor/nim-codex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/nim-codex b/vendor/nim-codex index 480bd3b..b701e08 160000 --- a/vendor/nim-codex +++ b/vendor/nim-codex @@ -1 +1 @@ -Subproject commit 480bd3b65917da0f90ea43146bd73986ef5272e0 +Subproject commit b701e08a56a49d00e2194defdf3577e1adbb0159 From b48610b1d609fa55085a6459a5232f1a6d4e0795 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Mon, 10 Nov 2025 19:57:34 +1100 Subject: [PATCH 2/8] Set nat: none for tests --- codex/testutil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/codex/testutil.go b/codex/testutil.go index 274495b..dabce04 100644 --- a/codex/testutil.go +++ b/codex/testutil.go @@ -15,6 +15,7 @@ func defaultConfigHelper(t *testing.T) Config { MetricsEnabled: false, BlockRetries: 3000, LogLevel: "ERROR", + Nat: "none", } } From 0000ded180d08db658d0311fc3011932ea2538df Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Mon, 10 Nov 2025 20:39:51 +1100 Subject: [PATCH 3/8] Set loglevel: trace for tests, remove nat: none --- codex/testutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex/testutil.go b/codex/testutil.go index dabce04..9ff5919 100644 --- a/codex/testutil.go +++ b/codex/testutil.go @@ -14,7 +14,7 @@ func defaultConfigHelper(t *testing.T) Config { LogFormat: LogFormatNoColors, MetricsEnabled: false, BlockRetries: 3000, - LogLevel: "ERROR", + LogLevel: "TRACE", Nat: "none", } } From e1511cd9e722db363cca37566f549f303b68f177 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 11 Nov 2025 12:09:51 +1100 Subject: [PATCH 4/8] bump to latest release/1.0.0-prototype.1 commit --- vendor/nim-codex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/nim-codex b/vendor/nim-codex index b701e08..4006b00 160000 --- a/vendor/nim-codex +++ b/vendor/nim-codex @@ -1 +1 @@ -Subproject commit b701e08a56a49d00e2194defdf3577e1adbb0159 +Subproject commit 4006b0024bf35c7c5e6d7623bec5cd10ee9765a4 From a5ae146e5df083c6baa1be96fd622580e7347e77 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:40:32 +1100 Subject: [PATCH 5/8] Remove loglevel trace from tests --- codex/testutil.go | 1 - 1 file changed, 1 deletion(-) diff --git a/codex/testutil.go b/codex/testutil.go index 9ff5919..529899d 100644 --- a/codex/testutil.go +++ b/codex/testutil.go @@ -14,7 +14,6 @@ func defaultConfigHelper(t *testing.T) Config { LogFormat: LogFormatNoColors, MetricsEnabled: false, BlockRetries: 3000, - LogLevel: "TRACE", Nat: "none", } } From 6a5c6da14fbc38d591d072d5c0fcbc73ed4bee22 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 11 Nov 2025 07:29:20 +0100 Subject: [PATCH 6/8] Bump nim-codex version --- vendor/nim-codex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/nim-codex b/vendor/nim-codex index 4006b00..5a227db 160000 --- a/vendor/nim-codex +++ b/vendor/nim-codex @@ -1 +1 @@ -Subproject commit 4006b0024bf35c7c5e6d7623bec5cd10ee9765a4 +Subproject commit 5a227dbb561672667c5c0285a417175b5004ddf7 From 763c7745f7f3d7383ebb950904ddd21e5ebf41e7 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 11 Nov 2025 07:31:44 +0100 Subject: [PATCH 7/8] Add test for storage quota --- codex/codex_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/codex/codex_test.go b/codex/codex_test.go index deb7cb7..060a22e 100644 --- a/codex/codex_test.go +++ b/codex/codex_test.go @@ -79,3 +79,13 @@ func TestPeerId(t *testing.T) { t.Logf("Codex PeerId: %s", peerId) } + +func TestStorageQuota(t *testing.T) { + node := newCodexNode(t, Config{ + StorageQuota: 1024 * 1024 * 1024, // 1GB + }) + + if node == nil { + t.Fatal("expected codex node to be created") + } +} From 7bf087ad88be90c07fba4e1e1cfbddce8739d8c3 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 11 Nov 2025 07:34:41 +0100 Subject: [PATCH 8/8] Add StorageQuota config to testutil --- codex/testutil.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codex/testutil.go b/codex/testutil.go index 529899d..fb0471c 100644 --- a/codex/testutil.go +++ b/codex/testutil.go @@ -43,6 +43,10 @@ func newCodexNode(t *testing.T, opts ...Config) *CodexNode { if c.DiscoveryPort != 0 { config.DiscoveryPort = c.DiscoveryPort } + + if c.StorageQuota != 0 { + config.StorageQuota = c.StorageQuota + } } node, err := New(config)