Skip to content

Commit d49bf23

Browse files
liya2017liya2017
authored andcommitted
refactor: remove useless code about overlord_gap
1 parent 11e7e5d commit d49bf23

14 files changed

Lines changed: 0 additions & 20 deletions

File tree

common/config-parser/src/types.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use protocol::types::{Hex, H160, U256};
99

1010
pub const DEFAULT_BROADCAST_TXS_SIZE: usize = 200;
1111
pub const DEFAULT_BROADCAST_TXS_INTERVAL: u64 = 200; // milliseconds
12-
pub const DEFAULT_OVERLORD_GAP: usize = 5;
1312
pub const DEFAULT_SYNC_TXS_CHUNK_SIZE: usize = 5000;
1413
pub const DEFAULT_CACHE_SIZE: usize = 100;
1514

@@ -121,18 +120,12 @@ pub struct ConfigNetworkBootstrap {
121120
pub multi_address: MultiAddr,
122121
}
123122

124-
fn default_overlord_gap() -> usize {
125-
DEFAULT_OVERLORD_GAP
126-
}
127-
128123
fn default_sync_txs_chunk_size() -> usize {
129124
DEFAULT_SYNC_TXS_CHUNK_SIZE
130125
}
131126

132127
#[derive(Clone, Debug, Deserialize)]
133128
pub struct ConfigConsensus {
134-
#[serde(default = "default_overlord_gap")]
135-
pub overlord_gap: usize,
136129
#[serde(default = "default_sync_txs_chunk_size")]
137130
pub sync_txs_chunk_size: usize,
138131
}

devtools/chain/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/node_1.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/node_2.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/node_3.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/node_4.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/sync_nodes/node_5.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/sync_nodes/node_6.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5858
rpc_timeout = 10
5959

6060
[consensus]
61-
overlord_gap = 5
6261
sync_txs_chunk_size = 5000
6362

6463
[[network.bootstraps]]

devtools/chain/k8s/sync_nodes/node_7.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

devtools/chain/k8s/sync_nodes/node_8.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ listening_address = "/ip4/0.0.0.0/tcp/8001"
5959
rpc_timeout = 10
6060

6161
[consensus]
62-
overlord_gap = 5
6362
sync_txs_chunk_size = 5000
6463

6564
[[network.bootstraps]]

0 commit comments

Comments
 (0)