xlayer: archive-only reth on OKX xlayer/op-reth image + snapshot reth.toml
X Layer mainnet/testnet op-reth now use the OKX xlayer/op-reth:v0.0.4.1 fork (generic op-reth can't read the X Layer DB format), the image's built-in xlayer-<network> chain spec, --rpc.legacy-url for post-snapshot history gap-fill, and the OKX archive-compatible reth.toml (light pruning only: merkle_changesets distance=10064). Switched the reth profile from full_trace to archive_trace and deleted the pruned variants — a "pruned" compose over archive snapshot data crash-loops on a block-height mismatch. Requires the official OKX reth snapshot pre-loaded into the volume; do NOT sync from scratch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
106
op/xlayer/mainnet/reth/reth.toml
Normal file
106
op/xlayer/mainnet/reth/reth.toml
Normal file
@@ -0,0 +1,106 @@
|
||||
[stages.era]
|
||||
|
||||
[stages.headers]
|
||||
downloader_max_concurrent_requests = 100
|
||||
downloader_min_concurrent_requests = 5
|
||||
downloader_max_buffered_responses = 100
|
||||
downloader_request_limit = 1000
|
||||
commit_threshold = 10000
|
||||
|
||||
[stages.bodies]
|
||||
downloader_request_limit = 200
|
||||
downloader_stream_batch_size = 1000
|
||||
downloader_max_buffered_blocks_size_bytes = 2147483648
|
||||
downloader_min_concurrent_requests = 5
|
||||
downloader_max_concurrent_requests = 100
|
||||
|
||||
[stages.sender_recovery]
|
||||
commit_threshold = 5000000
|
||||
|
||||
[stages.execution]
|
||||
max_blocks = 500000
|
||||
max_changes = 5000000
|
||||
max_cumulative_gas = 1500000000000
|
||||
max_duration = "10m"
|
||||
|
||||
[stages.prune]
|
||||
commit_threshold = 1000000
|
||||
|
||||
[stages.account_hashing]
|
||||
clean_threshold = 500000
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.storage_hashing]
|
||||
clean_threshold = 500000
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.merkle]
|
||||
incremental_threshold = 7000
|
||||
rebuild_threshold = 100000
|
||||
|
||||
[stages.transaction_lookup]
|
||||
chunk_size = 5000000
|
||||
|
||||
[stages.index_account_history]
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.index_storage_history]
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.etl]
|
||||
file_size = 524288000
|
||||
|
||||
[prune]
|
||||
block_interval = 5
|
||||
|
||||
[prune.segments.merkle_changesets]
|
||||
distance = 10064
|
||||
|
||||
[peers]
|
||||
refill_slots_interval = "5s"
|
||||
trusted_nodes = []
|
||||
trusted_nodes_only = false
|
||||
trusted_nodes_resolution_interval = "1h"
|
||||
max_backoff_count = 5
|
||||
ban_duration = "12h"
|
||||
incoming_ip_throttle_duration = "30s"
|
||||
|
||||
[peers.connection_info]
|
||||
max_outbound = 100
|
||||
max_inbound = 30
|
||||
max_concurrent_outbound_dials = 15
|
||||
|
||||
[peers.reputation_weights]
|
||||
bad_message = -16384
|
||||
bad_block = -16384
|
||||
bad_transactions = -16384
|
||||
already_seen_transactions = 0
|
||||
timeout = -4096
|
||||
bad_protocol = -2147483648
|
||||
failed_to_connect = -25600
|
||||
dropped = -4096
|
||||
bad_announcement = -1024
|
||||
|
||||
[peers.backoff_durations]
|
||||
low = "30s"
|
||||
medium = "3m"
|
||||
high = "15m"
|
||||
max = "1h"
|
||||
|
||||
[sessions]
|
||||
session_command_buffer = 32
|
||||
session_event_buffer = 260
|
||||
|
||||
[sessions.limits]
|
||||
|
||||
[sessions.initial_internal_request_timeout]
|
||||
secs = 20
|
||||
nanos = 0
|
||||
|
||||
[sessions.protocol_breach_request_timeout]
|
||||
secs = 120
|
||||
nanos = 0
|
||||
|
||||
[sessions.pending_session_timeout]
|
||||
secs = 20
|
||||
nanos = 0
|
||||
106
op/xlayer/testnet/reth/reth.toml
Normal file
106
op/xlayer/testnet/reth/reth.toml
Normal file
@@ -0,0 +1,106 @@
|
||||
[stages.era]
|
||||
|
||||
[stages.headers]
|
||||
downloader_max_concurrent_requests = 100
|
||||
downloader_min_concurrent_requests = 5
|
||||
downloader_max_buffered_responses = 100
|
||||
downloader_request_limit = 1000
|
||||
commit_threshold = 10000
|
||||
|
||||
[stages.bodies]
|
||||
downloader_request_limit = 200
|
||||
downloader_stream_batch_size = 1000
|
||||
downloader_max_buffered_blocks_size_bytes = 2147483648
|
||||
downloader_min_concurrent_requests = 5
|
||||
downloader_max_concurrent_requests = 100
|
||||
|
||||
[stages.sender_recovery]
|
||||
commit_threshold = 5000000
|
||||
|
||||
[stages.execution]
|
||||
max_blocks = 500000
|
||||
max_changes = 5000000
|
||||
max_cumulative_gas = 1500000000000
|
||||
max_duration = "10m"
|
||||
|
||||
[stages.prune]
|
||||
commit_threshold = 1000000
|
||||
|
||||
[stages.account_hashing]
|
||||
clean_threshold = 500000
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.storage_hashing]
|
||||
clean_threshold = 500000
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.merkle]
|
||||
incremental_threshold = 7000
|
||||
rebuild_threshold = 100000
|
||||
|
||||
[stages.transaction_lookup]
|
||||
chunk_size = 5000000
|
||||
|
||||
[stages.index_account_history]
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.index_storage_history]
|
||||
commit_threshold = 100000
|
||||
|
||||
[stages.etl]
|
||||
file_size = 524288000
|
||||
|
||||
[prune]
|
||||
block_interval = 5
|
||||
|
||||
[prune.segments.merkle_changesets]
|
||||
distance = 10064
|
||||
|
||||
[peers]
|
||||
refill_slots_interval = "5s"
|
||||
trusted_nodes = []
|
||||
trusted_nodes_only = false
|
||||
trusted_nodes_resolution_interval = "1h"
|
||||
max_backoff_count = 5
|
||||
ban_duration = "12h"
|
||||
incoming_ip_throttle_duration = "30s"
|
||||
|
||||
[peers.connection_info]
|
||||
max_outbound = 100
|
||||
max_inbound = 30
|
||||
max_concurrent_outbound_dials = 15
|
||||
|
||||
[peers.reputation_weights]
|
||||
bad_message = -16384
|
||||
bad_block = -16384
|
||||
bad_transactions = -16384
|
||||
already_seen_transactions = 0
|
||||
timeout = -4096
|
||||
bad_protocol = -2147483648
|
||||
failed_to_connect = -25600
|
||||
dropped = -4096
|
||||
bad_announcement = -1024
|
||||
|
||||
[peers.backoff_durations]
|
||||
low = "30s"
|
||||
medium = "3m"
|
||||
high = "15m"
|
||||
max = "1h"
|
||||
|
||||
[sessions]
|
||||
session_command_buffer = 32
|
||||
session_event_buffer = 260
|
||||
|
||||
[sessions.limits]
|
||||
|
||||
[sessions.initial_internal_request_timeout]
|
||||
secs = 20
|
||||
nanos = 0
|
||||
|
||||
[sessions.protocol_breach_request_timeout]
|
||||
secs = 120
|
||||
nanos = 0
|
||||
|
||||
[sessions.pending_session_timeout]
|
||||
secs = 20
|
||||
nanos = 0
|
||||
Reference in New Issue
Block a user