updating readme with latest changes (#331)

This commit is contained in:
Dmitriy Ryajov 2023-02-15 13:40:21 -06:00 committed by GitHub
parent 9f73c86477
commit 153d72c6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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].

View File

@ -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

View File

@ -20,9 +20,6 @@ import ../blocktype
export blocktype, libp2p
const
DefaultBlockTtl = 24.hours
type
BlockNotFoundError* = object of CodexError