Skip to content
Snippets Groups Projects
Commit 239d958b authored by Éloïs's avatar Éloïs
Browse files

[fix] currency-params: use same FORK_WINDOW_SIZE value as duniter

parent fb1bf8d1
No related branches found
No related tags found
1 merge request!166Resolve "WS2Pv1: Intelligent request of previous blocks to fill fork tree holes"
......@@ -27,4 +27,4 @@ pub static DEFAULT_MS_PERIOD: &'static u64 = &5_259_600;
/// Default value for tx_window parameter
pub static DEFAULT_TX_WINDOW: &'static u64 = &604_800;
/// Default maximum roolback length
pub static DEFAULT_FORK_WINDOW_SIZE: &'static usize = &200;
pub static DEFAULT_FORK_WINDOW_SIZE: &'static usize = &100;
......@@ -132,8 +132,8 @@ impl From<(&CurrencyName, BlockV10Parameters)> for CurrencyParameters {
};
let fork_window_size = match currency_name.0.as_str() {
DEFAULT_CURRENCY => *DEFAULT_FORK_WINDOW_SIZE,
"g1" => 200,
"g1-test" => 200,
"g1" => 100,
"g1-test" => 100,
_ => *DEFAULT_FORK_WINDOW_SIZE,
};
CurrencyParameters {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment