mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-22 19:49:28 +00:00
rename & fix default config file
This commit is contained in:
parent
5a5f4d1c7c
commit
3664eb1b08
5 changed files with 8 additions and 9 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -1041,7 +1041,6 @@ dependencies = [
|
|||
"cuprate-consensus",
|
||||
"cuprate-consensus-context",
|
||||
"cuprate-consensus-rules",
|
||||
"cuprate-constants",
|
||||
"cuprate-cryptonight",
|
||||
"cuprate-dandelion-tower",
|
||||
"cuprate-database",
|
||||
|
@ -2851,12 +2850,12 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "terminal_size"
|
||||
version = "0.3.0"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7"
|
||||
checksum = "4f599bd7ca042cfdf8f4512b277c02ba102247820f9d9d4a9f521f496751a6ef"
|
||||
dependencies = [
|
||||
"rustix",
|
||||
"windows-sys 0.48.0",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -24,7 +24,7 @@ cuprate-p2p-core = { workspace = true, features = ["serde"] }
|
|||
cuprate-dandelion-tower = { workspace = true, features = ["txpool"] }
|
||||
cuprate-async-buffer = { workspace = true }
|
||||
cuprate-address-book = { workspace = true, features = ["serde_config"] }
|
||||
cuprate-blockchain = { workspace = true, features = ["service"] }
|
||||
cuprate-blockchain = { workspace = true }
|
||||
cuprate-database-service = { workspace = true, features = ["serde"] }
|
||||
cuprate-txpool = { workspace = true }
|
||||
cuprate-database = { workspace = true, features = ["serde"] }
|
||||
|
|
|
@ -36,7 +36,7 @@ max_white_list_length = 1_000
|
|||
## The size of the gray peer list, which contains peers we have not made a connection to before.
|
||||
max_gray_list_length = 5_000
|
||||
## The folder to store the address book.
|
||||
peer_store_folder = {cache}
|
||||
peer_store_directory = {cache}
|
||||
## The amount of time between address book saves.
|
||||
peer_save_period = {{ secs = 90, nanos = 0 }}
|
||||
|
||||
|
@ -65,7 +65,7 @@ path = {txpool}
|
|||
## The database sync mode for the txpool.
|
||||
sync_mode = "Async"
|
||||
## The maximum size of all the txs in the pool (bytes).
|
||||
max_txpool_size = 100_000_000
|
||||
max_txpool_byte_size = 100_000_000
|
||||
|
||||
## Blockchain storage config.
|
||||
[storage.blockchain]
|
|
@ -45,7 +45,7 @@ fn generate_config_text() -> String {
|
|||
};
|
||||
|
||||
format!(
|
||||
include_str!("Cuprate.toml"),
|
||||
include_str!("Cuprated.toml"),
|
||||
cache = toml_value_str(&CUPRATE_CACHE_DIR),
|
||||
txpool = toml_value_str(&CUPRATE_TXPOOL_DIR),
|
||||
blockchain = toml_value_str(&CUPRATE_BLOCKCHAIN_DIR)
|
||||
|
|
|
@ -53,7 +53,7 @@ impl Default for TxpoolConfig {
|
|||
path: CUPRATE_TXPOOL_DIR.to_path_buf(),
|
||||
sync_mode: SyncMode::Async,
|
||||
},
|
||||
max_txpool_size: 100_000_000,
|
||||
max_txpool_byte_size: 100_000_000,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue