From 153d72c6c44155e748375ac55785d19de22e5483 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 15 Feb 2023 13:40:21 -0600 Subject: [PATCH] updating readme with latest changes (#331) --- README.md | 2 ++ codex/conf.nim | 5 +++-- codex/stores/blockstore.nim | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9e6c072f..d627362d 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,8 @@ The following options are available: --max-peers The maximum number of peers to connect to [=160]. --agent-string Node agent string which is used as identifier in network [=Codex]. -p, --api-port The REST Api port [=8080]. + -q, --storage-quota The size of the total storage quota dedicated to the node [=8589934592]. + -t, --block-ttl Default block timeout in seconds - 0 disables the ttl [=86400]. -c, --cache-size The size in MiB of the block cache, 0 disables the cache - might help on slow hardrives [=0]. --persistence Enables persistence mechanism, requires an Ethereum node [=false]. diff --git a/codex/conf.nim b/codex/conf.nim index 7a7b8eab..6999edfc 100644 --- a/codex/conf.nim +++ b/codex/conf.nim @@ -17,6 +17,7 @@ import std/options import std/strutils import std/typetraits +import pkg/chronos import pkg/chronicles import pkg/chronicles/helpers import pkg/chronicles/topics_registry @@ -31,7 +32,7 @@ import pkg/ethers import ./discovery import ./stores -export DefaultCacheSizeMiB, net, DefaultQuotaBytes, DefaultBlockTtl +export DefaultCacheSizeMiB, DefaultQuotaBytes, DefaultBlockTtl, net type StartUpCommand* {.pure.} = enum @@ -154,7 +155,7 @@ type blockTtl* {. desc: "Default block timeout in seconds - 0 disables the ttl" defaultValue: DefaultBlockTtl.secs - defaultValueDesc: $DefaultBlockTtl + defaultValueDesc: "86400" # 24h in secs name: "block-ttl" abbr: "t" }: Natural diff --git a/codex/stores/blockstore.nim b/codex/stores/blockstore.nim index 3e06ef9f..363e303a 100644 --- a/codex/stores/blockstore.nim +++ b/codex/stores/blockstore.nim @@ -20,9 +20,6 @@ import ../blocktype export blocktype, libp2p -const - DefaultBlockTtl = 24.hours - type BlockNotFoundError* = object of CodexError