Skip to content

Cannot start a node with --utxoindex #696

@9igeeky

Description

@9igeeky

[ERROR] thread 'main' panicked at kaspad/src/daemon.rs:226:32: attempt to multiply with overflow

thread 'main' panicked at kaspad/src/daemon.rs:226:32:
attempt to multiply with overflow
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Exiting...

kaspad/src/daemon.rs:
pub fn create_core_with_runtime(runtime: &Runtime, args: &Args, fd_total_budget: i32) -> (Arc, Arc) {
let network = args.network();
let mut fd_remaining = fd_total_budget;
let utxo_files_limit = if args.utxoindex {
let utxo_files_limit = fd_remaining * 10 / 100;
fd_remaining -= utxo_files_limit;
utxo_files_limit
} else {
0
};

Line 226: let utxo_files_limit = fd_remaining * 10 / 100;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions