From 68f9e0384c7eb6fa28d113e29ccd6e353fe8ab31 Mon Sep 17 00:00:00 2001 From: platfowner Date: Mon, 9 Sep 2024 14:55:13 +0900 Subject: [PATCH 1/2] Change MAX_NUM_EVENT_CHANNELS to 30 --- blockchain-configs/afan-shard/node_params.json | 2 +- blockchain-configs/base/node_params.json | 2 +- blockchain-configs/he-shard/node_params.json | 2 +- blockchain-configs/mainnet-prod/node_params.json | 2 +- blockchain-configs/sim-shard/node_params.json | 2 +- blockchain-configs/testnet-dev/node_params.json | 2 +- blockchain-configs/testnet-exp/node_params.json | 2 +- blockchain-configs/testnet-prod/node_params.json | 2 +- blockchain-configs/testnet-sandbox/node_params.json | 2 +- blockchain-configs/testnet-staging/node_params.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/blockchain-configs/afan-shard/node_params.json b/blockchain-configs/afan-shard/node_params.json index e6e2cfb0c..dfff19fc3 100644 --- a/blockchain-configs/afan-shard/node_params.json +++ b/blockchain-configs/afan-shard/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 3, diff --git a/blockchain-configs/base/node_params.json b/blockchain-configs/base/node_params.json index 095343862..23fd32365 100644 --- a/blockchain-configs/base/node_params.json +++ b/blockchain-configs/base/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/he-shard/node_params.json b/blockchain-configs/he-shard/node_params.json index 050f07072..c917e507d 100644 --- a/blockchain-configs/he-shard/node_params.json +++ b/blockchain-configs/he-shard/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/mainnet-prod/node_params.json b/blockchain-configs/mainnet-prod/node_params.json index ee91f27f3..786cf3de6 100644 --- a/blockchain-configs/mainnet-prod/node_params.json +++ b/blockchain-configs/mainnet-prod/node_params.json @@ -46,7 +46,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/sim-shard/node_params.json b/blockchain-configs/sim-shard/node_params.json index 35c97a9d3..a23e866f2 100644 --- a/blockchain-configs/sim-shard/node_params.json +++ b/blockchain-configs/sim-shard/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/testnet-dev/node_params.json b/blockchain-configs/testnet-dev/node_params.json index 2cd2de037..30dabfde6 100644 --- a/blockchain-configs/testnet-dev/node_params.json +++ b/blockchain-configs/testnet-dev/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/testnet-exp/node_params.json b/blockchain-configs/testnet-exp/node_params.json index 12f0a6110..0f781d236 100644 --- a/blockchain-configs/testnet-exp/node_params.json +++ b/blockchain-configs/testnet-exp/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/testnet-prod/node_params.json b/blockchain-configs/testnet-prod/node_params.json index e7983699b..01be4f404 100644 --- a/blockchain-configs/testnet-prod/node_params.json +++ b/blockchain-configs/testnet-prod/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/testnet-sandbox/node_params.json b/blockchain-configs/testnet-sandbox/node_params.json index 04af90f42..d785df4a7 100644 --- a/blockchain-configs/testnet-sandbox/node_params.json +++ b/blockchain-configs/testnet-sandbox/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, diff --git a/blockchain-configs/testnet-staging/node_params.json b/blockchain-configs/testnet-staging/node_params.json index 1d5bc123a..084bbe96a 100644 --- a/blockchain-configs/testnet-staging/node_params.json +++ b/blockchain-configs/testnet-staging/node_params.json @@ -47,7 +47,7 @@ "MAX_FINALIZED_BLOCK_INFO_ON_MEM": 1000, "MAX_JSON_RPC_API_READ_RATE_LIMIT": 10, "MAX_JSON_RPC_API_WRITE_RATE_LIMIT": 1, - "MAX_NUM_EVENT_CHANNELS": 20, + "MAX_NUM_EVENT_CHANNELS": 30, "MAX_NUM_EVENT_FILTERS": 40, "MAX_NUM_EVENT_FILTERS_PER_CHANNEL": 5, "MAX_NUM_INBOUND_CONNECTION": 6, From 33ab51cd4edef8bd8a4fcd015481b7cb3efde088 Mon Sep 17 00:00:00 2001 From: platfowner Date: Mon, 9 Sep 2024 17:07:10 +0900 Subject: [PATCH 2/2] Fix unit tests --- test/unit/p2p.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/p2p.test.js b/test/unit/p2p.test.js index bef1b3b83..e19027102 100644 --- a/test/unit/p2p.test.js +++ b/test/unit/p2p.test.js @@ -227,13 +227,13 @@ describe("P2p", () => { isEnabled: false, networkInfo: { url: "", - maxNumEventChannels: 20, + maxNumEventChannels: 30, numEventChannels: 0, maxNumEventFilters: 40, numEventFilters: 0, }, channelStatus: { - maxNumEventChannels: 20, + maxNumEventChannels: 30, numEventChannels: 0, channelLifeTimeLimitSecs: 3600, channelIdleTimeLimitSecs: 600,