mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(net): expose pending pool imports bound in cli (#10357)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
5
book/cli/reth/debug/execution.md
vendored
5
book/cli/reth/debug/execution.md
vendored
@ -177,6 +177,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/debug/in-memory-merkle.md
vendored
5
book/cli/reth/debug/in-memory-merkle.md
vendored
@ -177,6 +177,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/debug/merkle.md
vendored
5
book/cli/reth/debug/merkle.md
vendored
@ -177,6 +177,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/debug/replay-engine.md
vendored
5
book/cli/reth/debug/replay-engine.md
vendored
@ -177,6 +177,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/node.md
vendored
5
book/cli/reth/node.md
vendored
@ -169,6 +169,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/p2p.md
vendored
5
book/cli/reth/p2p.md
vendored
@ -154,6 +154,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/stage/run.md
vendored
5
book/cli/reth/stage/run.md
vendored
@ -220,6 +220,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
5
book/cli/reth/stage/unwind.md
vendored
5
book/cli/reth/stage/unwind.md
vendored
@ -182,6 +182,11 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--max-pending-imports <COUNT>
|
||||
Max number of transactions to import concurrently.
|
||||
|
||||
[default: 4096]
|
||||
|
||||
--max-seen-tx-history <MAX_SEEN_TX_HISTORY>
|
||||
Max number of seen transactions to remember per peer.
|
||||
|
||||
|
||||
@ -12,7 +12,9 @@ use reth_discv5::{
|
||||
use reth_net_nat::NatResolver;
|
||||
use reth_network::{
|
||||
transactions::{
|
||||
constants::tx_manager::DEFAULT_MAX_COUNT_TRANSACTIONS_SEEN_BY_PEER,
|
||||
constants::tx_manager::{
|
||||
DEFAULT_MAX_COUNT_PENDING_POOL_IMPORTS, DEFAULT_MAX_COUNT_TRANSACTIONS_SEEN_BY_PEER,
|
||||
},
|
||||
TransactionFetcherConfig, TransactionsManagerConfig,
|
||||
DEFAULT_SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESP_ON_PACK_GET_POOLED_TRANSACTIONS_REQ,
|
||||
SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE,
|
||||
@ -97,6 +99,10 @@ pub struct NetworkArgs {
|
||||
#[arg(long)]
|
||||
pub max_inbound_peers: Option<usize>,
|
||||
|
||||
#[arg(long = "max-pending-imports", value_name = "COUNT", default_value_t = DEFAULT_MAX_COUNT_PENDING_POOL_IMPORTS, verbatim_doc_comment)]
|
||||
/// Max number of transactions to import concurrently.
|
||||
pub max_pending_pool_imports: usize,
|
||||
|
||||
/// Max number of seen transactions to remember per peer.
|
||||
///
|
||||
/// Default is 320 transaction hashes.
|
||||
@ -269,6 +275,7 @@ impl Default for NetworkArgs {
|
||||
soft_limit_byte_size_pooled_transactions_response:
|
||||
SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE,
|
||||
soft_limit_byte_size_pooled_transactions_response_on_pack_request: DEFAULT_SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESP_ON_PACK_GET_POOLED_TRANSACTIONS_REQ,
|
||||
max_pending_pool_imports: DEFAULT_MAX_COUNT_PENDING_POOL_IMPORTS,
|
||||
max_seen_tx_history: DEFAULT_MAX_COUNT_TRANSACTIONS_SEEN_BY_PEER,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user