Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydradx"
version = "15.1.5"
version = "15.1.6"
description = "Hydration node"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down
9 changes: 4 additions & 5 deletions node/res/hydradx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"id": "hydra",
"chainType": "Live",
"bootNodes": [
"/dns/p2p-01.hydra.hydradx.io/tcp/30333/p2p/12D3KooWHzv7XVVBwY4EX1aKJBU6qzEjqGk6XtoFagr5wEXx6MsH",
"/dns/p2p-02.hydra.hydradx.io/tcp/30333/p2p/12D3KooWR72FwHrkGNTNes6U5UHQezWLmrKu6b45MvcnRGK8J3S6",
"/dns/p2p-03.hydra.hydradx.io/tcp/30333/p2p/12D3KooWFDwxZinAjgmLVgsideCmdB2bz911YgiQdLEiwKovezUz",
"/dns4/boot.helikon.io/tcp/15120/p2p/12D3KooWDcQY1L2ny3F7YPyP4snCZZYc4eKWgPLEzdBvWBUjH5Yt",
"/dns4/boot.helikon.io/tcp/15125/wss/p2p/12D3KooWDcQY1L2ny3F7YPyP4snCZZYc4eKWgPLEzdBvWBUjH5Yt",
"/dns/p2p-01.hydra.hydradx.io/tcp/30333/p2p/12D3KooWDZvr1trejZptZq9aPYE5owDrHAwGhNivw8bpAXkxVGXX",
"/dns/p2p-02.hydra.hydradx.io/tcp/30333/p2p/12D3KooWJchDHSvN8xuerTwJm7GEdEHQ299yGerJ4S1fud5kWUgJ",
"/dns/p2p-03.hydra.hydradx.io/tcp/30333/p2p/12D3KooWJr2g3EFNqcF6z9rUy2EeRracoWUyDUtksdv2CUVxwrqZ",
"/dns/hdx.shellfish.hydration.cloud/tcp/30334/p2p/12D3KooWLbvUYQ2dr5uKsAZZP3FLPba1QEHfSEzsXFwsM9uH712S",
"/dns/hydration.boot.stake.plus/tcp/30332/wss/p2p/12D3KooWGZaDfqPyzVxhA3k1qv72P7xqYTJS8W9U7GWUEdXYhtUU",
"/dns/hydration.boot.stake.plus/tcp/31332/wss/p2p/12D3KooWBJMG8LCh6pLYbGapA3SNzjhQWE87ieGux41jKQrrf5js",
"/dns/hydration-boot-ng.dwellir.com/tcp/443/wss/p2p/12D3KooWMNf1YGh3rxaiWPjzQ1UKQxKq2WSjAKdrSgdcYaFH4ie5",
Expand Down
13 changes: 12 additions & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,23 @@ pub fn new_partial(
extra_pages: h as _,
});

// The upstream default runtime cache size (2) is too small for nodes serving
// historical state across runtime upgrades: the hot working set spans several
// runtime versions, so a cache of 2 evicts and re-prepares WASM runtimes
// constantly and exhausts the instance pool under indexer/RPC load. Treat the
// upstream default as "unset" and use 8; any explicit operator value is honored.
let runtime_cache_size = if config.executor.runtime_cache_size == 2 {
8
} else {
config.executor.runtime_cache_size
};

let executor = WasmExecutor::builder()
.with_execution_method(config.executor.wasm_method)
.with_onchain_heap_alloc_strategy(heap_pages)
.with_offchain_heap_alloc_strategy(heap_pages)
.with_max_runtime_instances(config.executor.max_runtime_instances)
.with_runtime_cache_size(config.executor.runtime_cache_size)
.with_runtime_cache_size(runtime_cache_size)
.build();

let tx_priority_json = if no_tx_priority_override {
Expand Down
Loading