Merge pull request #13 from codex-storage/chore/bump-codex-to-release-branch

chore: bump nim-codex to prototype release branch
This commit is contained in:
Eric 2025-11-11 17:53:10 +11:00 committed by GitHub
commit a83c427561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 2 deletions

View File

@ -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")
}
}

View File

@ -14,7 +14,7 @@ func defaultConfigHelper(t *testing.T) Config {
LogFormat: LogFormatNoColors,
MetricsEnabled: false,
BlockRetries: 3000,
LogLevel: "ERROR",
Nat: "none",
}
}
@ -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)

2
vendor/nim-codex vendored

@ -1 +1 @@
Subproject commit 480bd3b65917da0f90ea43146bd73986ef5272e0
Subproject commit 5a227dbb561672667c5c0285a417175b5004ddf7