Skip to content

anvil: make max on disk history limit configurable #8399

Closed
@mattsse

Description

@mattsse

Component

Anvil

Describe the feature you would like

// 1hr of up-time at lowest 1s interval
const MAX_ON_DISK_HISTORY_LIMIT: usize = 3_600;

we already have this for the memory limit

min_in_memory_limit: limit.min(MIN_HISTORY_LIMIT),
max_on_disk_limit: MAX_ON_DISK_HISTORY_LIMIT,

/// Don't keep full chain history.
/// If a number argument is specified, at most this number of states is kept in memory.
#[arg(long)]
pub prune_history: Option<Option<usize>>,

maybe those can even be combined, because I think the
--prune_history is slightly confusing

So I think this should be fixed by setting

max_on_disk_limit: MAX_ON_DISK_HISTORY_LIMIT,

to limit

Additional context

No response

Metadata

Metadata

Assignees

Labels

C-anvilCommand: anvilT-featureType: featurefirst issueA good way to start contributing

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions