Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.34 #43

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
332 changes: 217 additions & 115 deletions build/files/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,128 +4,230 @@
"validator_key_file": "validator_key.json",
"node_key_file": "node_key.json",
"rpc": {
"addr": "0.0.0.0:3030",
"cors_allowed_origins": [
"*"
],
"polling_config": {
"polling_interval": {
"secs": 0,
"nanos": 500000000
},
"polling_timeout": {
"secs": 10,
"nanos": 0
}
},
"limits_config": {
"json_payload_max_size": 10485760
"addr": "0.0.0.0:3030",
"prometheus_addr": null,
"cors_allowed_origins": [
"*"
],
"polling_config": {
"polling_interval": {
"secs": 0,
"nanos": 500000000
},
"polling_timeout": {
"secs": 10,
"nanos": 0
}
},
"limits_config": {
"json_payload_max_size": 10485760
},
"enable_debug_rpc": false,
"experimental_debug_pages_src_path": null
},
"telemetry": {
"endpoints": [
"https://explorer.mainnet.near.org/api/nodes"
]
"endpoints": [
"https://explorer.mainnet.near.org/api/nodes"
],
"reporting_interval": {
"secs": 10,
"nanos": 0
}
},
"network": {
"addr": "0.0.0.0:24567",
"external_address": "",
"boot_nodes": "ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567",
"max_num_peers": 40,
"minimum_outbound_peers": 5,
"ideal_connections_lo": 30,
"ideal_connections_hi": 35,
"peer_recent_time_window": {
"secs": 600,
"nanos": 0
},
"safe_set_size": 20,
"handshake_timeout": {
"secs": 20,
"nanos": 0
},
"reconnect_delay": {
"secs": 60,
"nanos": 0
},
"skip_sync_wait": false,
"ban_window": {
"secs": 10800,
"nanos": 0
},
"blacklist": [],
"ttl_account_id_router": {
"secs": 3600,
"nanos": 0
},
"peer_stats_period": {
"secs": 5,
"nanos": 0
}
"addr": "0.0.0.0:24567",
"boot_nodes": "ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567",
"whitelist_nodes": "",
"max_num_peers": 300,
"minimum_outbound_peers": 5,
"ideal_connections_lo": 100,
"ideal_connections_hi": 190,
"peer_recent_time_window": {
"secs": 600,
"nanos": 0
},
"safe_set_size": 20,
"archival_peer_connections_lower_bound": 10,
"handshake_timeout": {
"secs": 20,
"nanos": 0
},
"skip_sync_wait": false,
"ban_window": {
"secs": 10800,
"nanos": 0
},
"blacklist": [],
"ttl_account_id_router": {
"secs": 3600,
"nanos": 0
},
"peer_stats_period": {
"secs": 5,
"nanos": 0
},
"monitor_peers_max_period": {
"secs": 60,
"nanos": 0
},
"peer_states_cache_size": 1000,
"peer_expiration_duration": {
"secs": 604800,
"nanos": 0
},
"public_addrs": [],
"allow_private_ip_in_public_addrs": false,
"trusted_stun_servers": [
"stun.l.google.com:19302",
"stun1.l.google.com:19302",
"stun2.l.google.com:19302",
"stun3.l.google.com:19302",
"stun4.l.google.com:19302"
],
"experimental": {
"inbound_disabled": false,
"connect_only_to_boot_nodes": false,
"skip_sending_tombstones_seconds": 0,
"tier1_enable_inbound": true,
"tier1_enable_outbound": true,
"tier1_connect_interval": {
"secs": 60,
"nanos": 0
},
"tier1_new_connections_per_attempt": 50
}
},
"consensus": {
"min_num_peers": 3,
"block_production_tracking_delay": {
"secs": 0,
"nanos": 100000000
},
"min_block_production_delay": {
"secs": 1,
"nanos": 300000000
},
"max_block_production_delay": {
"secs": 3,
"nanos": 0
},
"max_block_wait_delay": {
"secs": 6,
"nanos": 0
},
"reduce_wait_for_missing_block": {
"secs": 0,
"nanos": 100000000
},
"produce_empty_blocks": true,
"block_fetch_horizon": 50,
"state_fetch_horizon": 5,
"block_header_fetch_horizon": 50,
"catchup_step_period": {
"secs": 0,
"nanos": 100000000
},
"chunk_request_retry_period": {
"secs": 0,
"nanos": 400000000
},
"header_sync_initial_timeout": {
"secs": 10,
"nanos": 0
},
"header_sync_progress_timeout": {
"secs": 2,
"nanos": 0
},
"header_sync_stall_ban_timeout": {
"secs": 120,
"nanos": 0
},
"header_sync_expected_height_per_second": 10,
"sync_check_period": {
"secs": 10,
"nanos": 0
},
"sync_step_period": {
"secs": 0,
"nanos": 10000000
},
"doomslug_step_period": {
"secs": 0,
"nanos": 100000000
}
"min_num_peers": 3,
"block_production_tracking_delay": {
"secs": 0,
"nanos": 100000000
},
"min_block_production_delay": {
"secs": 1,
"nanos": 300000000
},
"max_block_production_delay": {
"secs": 3,
"nanos": 0
},
"max_block_wait_delay": {
"secs": 6,
"nanos": 0
},
"produce_empty_blocks": true,
"block_fetch_horizon": 50,
"block_header_fetch_horizon": 50,
"catchup_step_period": {
"secs": 0,
"nanos": 100000000
},
"chunk_request_retry_period": {
"secs": 0,
"nanos": 400000000
},
"header_sync_initial_timeout": {
"secs": 10,
"nanos": 0
},
"header_sync_progress_timeout": {
"secs": 2,
"nanos": 0
},
"header_sync_stall_ban_timeout": {
"secs": 120,
"nanos": 0
},
"state_sync_timeout": {
"secs": 60,
"nanos": 0
},
"header_sync_expected_height_per_second": 10,
"sync_check_period": {
"secs": 10,
"nanos": 0
},
"sync_step_period": {
"secs": 0,
"nanos": 10000000
},
"doomslug_step_period": {
"secs": 0,
"nanos": 100000000
},
"sync_height_threshold": 1
},
"tracked_accounts": [],
"tracked_shards": [0],
"archive": false,
"tracked_shards": [
0
],
"log_summary_style": "colored",
"log_summary_period": {
"secs": 10,
"nanos": 0
},
"enable_multiline_logging": false,
"gc_blocks_limit": 2,
"view_client_threads": 4
}
"gc_fork_clean_step": 100,
"gc_num_epochs_to_keep": 5,
"view_client_threads": 4,
"epoch_sync_enabled": false,
"view_client_throttle_period": {
"secs": 30,
"nanos": 0
},
"trie_viewer_state_size_limit": 50000,
"store": {
"path": null,
"enable_statistics": false,
"enable_statistics_export": true,
"max_open_files": 10000,
"col_state_cache_size": 3221225472,
"block_size": 16384,
"trie_cache": {
"default_max_bytes": 50000000,
"per_shard_max_bytes": {
"s3.v1": 3000000000
},
"shard_cache_deletions_queue_capacity": 100000
},
"view_trie_cache": {
"default_max_bytes": 50000000,
"per_shard_max_bytes": {},
"shard_cache_deletions_queue_capacity": 100000
},
"enable_receipt_prefetching": true,
"sweat_prefetch_receivers": [
"token.sweat",
"vfinal.token.sweat.testnet"
],
"sweat_prefetch_senders": [
"oracle.sweat",
"sweat_the_oracle.testnet"
],
"background_migration_threads": 8,
"flat_storage_creation_enabled": true,
"flat_storage_creation_period": {
"secs": 1,
"nanos": 0
},
"state_snapshot_enabled": false,
"state_snapshot_compaction_enabled": false
},
"state_sync_enabled": true,
"state_sync": {
"sync": {
"ExternalStorage": {
"location": {
"GCS": {
"bucket": "state-parts"
}
},
"num_concurrent_requests": 25,
"num_concurrent_requests_during_catchup": 5
}
}
},
"transaction_pool_size_limit": 100000,
"s3_credentials_file": null
}
7 changes: 4 additions & 3 deletions build/files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ if [ ! -f /root/.near/config.json ]; then
cd /root/.near/data
/app/s5cmd --no-sign-request=true cp $SNAPSHOT_BUCKET .
echo "Download of snapshot complete."
fi

echo "Copying default config to node"
cp /app/config.json.default /root/.near/config.json
echo "Copying default config to node"
cp /app/config.json.default /root/.near/config.json

fi

echo "List items in /root/.near"
ls -l /root/.near
Expand Down
2 changes: 1 addition & 1 deletion dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nearbp.avado.dnp.dappnode.eth",
"version": "0.0.33",
"version": "0.0.34",
"upstream": "1.36.0",
"description": "Near Validator (mainnet)",
"autoupdate": true,
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.4'
services:
nearbp.avado.dnp.dappnode.eth:
build: ./build
image: 'nearbp.avado.dnp.dappnode.eth:0.0.33'
image: 'nearbp.avado.dnp.dappnode.eth:0.0.34'
restart: always
volumes:
- 'data:/root/.near'
Expand Down