massa_ledger_exports/config.rs
1// Copyright (c) 2022 MASSA LABS <info@massa.net>
2
3//! This file defines a configuration structure containing all settings for the ledger system
4
5use std::path::PathBuf;
6
7/// Ledger configuration
8#[derive(Debug, Clone)]
9pub struct LedgerConfig {
10 /// thread count
11 pub thread_count: u8,
12 /// initial SCE ledger file
13 pub initial_ledger_path: PathBuf,
14 /// max key length
15 pub max_key_length: u8,
16 /// max datastore value length
17 pub max_datastore_value_length: u64,
18 /// max length of a smart contract bytecode
19 pub max_bytecode_size: u64,
20}