Raise cronos feeHistory cap from 100 to 250
- Add FEEHISTORY_CAP env tunable with default 250 - Update init.sh to use FEEHISTORY_CAP for feehistory-cap in app.toml - Maintain backward compatibility with JSON_RPC_FEEHISTORY_CAP - Apply to both mainnet and testnet profiles Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -17,24 +17,6 @@
|
|||||||
"abcore-mainnet-geth-pruned-pebble-hash"
|
"abcore-mainnet-geth-pruned-pebble-hash"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"chain": "mainnet",
|
|
||||||
"client": "geth",
|
|
||||||
"compose_file": "abcore/geth/abcore-mainnet-geth-pruned-pebble-path",
|
|
||||||
"drpc_chain": "abcore",
|
|
||||||
"features": [
|
|
||||||
"hash",
|
|
||||||
"pebble"
|
|
||||||
],
|
|
||||||
"network": "abcore",
|
|
||||||
"node": null,
|
|
||||||
"relay": null,
|
|
||||||
"stack": null,
|
|
||||||
"type": "pruned",
|
|
||||||
"volumes": [
|
|
||||||
"abcore-mainnet-geth-pruned-pebble-path"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"chain": "mainnet",
|
"chain": "mainnet",
|
||||||
"client": "external-node",
|
"client": "external-node",
|
||||||
|
|||||||
@@ -61,12 +61,13 @@ services:
|
|||||||
- API=eth,txpool,net,debug,web3
|
- API=eth,txpool,net,debug,web3
|
||||||
- CHAINID=cronosmainnet_25-1
|
- CHAINID=cronosmainnet_25-1
|
||||||
- EVM_MAX_TX_GAS_WANTED=500000
|
- EVM_MAX_TX_GAS_WANTED=500000
|
||||||
|
- FEEHISTORY_CAP=250
|
||||||
- GENESIS_URL=https://raw.githubusercontent.com/crypto-org-chain/cronos-mainnet/master/cronosmainnet_25-1/genesis.json
|
- GENESIS_URL=https://raw.githubusercontent.com/crypto-org-chain/cronos-mainnet/master/cronosmainnet_25-1/genesis.json
|
||||||
- IP=${IP}
|
- IP=${IP}
|
||||||
- JSON_RPC_BLOCK_RANGE_CAP=10000
|
- JSON_RPC_BLOCK_RANGE_CAP=10000
|
||||||
- JSON_RPC_ENABLE=true
|
- JSON_RPC_ENABLE=true
|
||||||
- JSON_RPC_ENABLE_INDEXER=true
|
- JSON_RPC_ENABLE_INDEXER=true
|
||||||
- JSON_RPC_FEEHISTORY_CAP=100
|
- JSON_RPC_FEEHISTORY_CAP=250
|
||||||
- JSON_RPC_HTTP_TIMEOUT=30s
|
- JSON_RPC_HTTP_TIMEOUT=30s
|
||||||
- JSON_RPC_LOGS_CAP=10000
|
- JSON_RPC_LOGS_CAP=10000
|
||||||
- MIN_GAS=5000000000000basecro
|
- MIN_GAS=5000000000000basecro
|
||||||
|
|||||||
@@ -61,12 +61,13 @@ services:
|
|||||||
- API=eth,txpool,net,debug,web3
|
- API=eth,txpool,net,debug,web3
|
||||||
- CHAINID=cronostestnet_338-3
|
- CHAINID=cronostestnet_338-3
|
||||||
- EVM_MAX_TX_GAS_WANTED=500000
|
- EVM_MAX_TX_GAS_WANTED=500000
|
||||||
|
- FEEHISTORY_CAP=250
|
||||||
- GENESIS_URL=https://raw.githubusercontent.com/crypto-org-chain/cronos-testnets/main/cronostestnet_338-3/genesis.json
|
- GENESIS_URL=https://raw.githubusercontent.com/crypto-org-chain/cronos-testnets/main/cronostestnet_338-3/genesis.json
|
||||||
- IP=${IP}
|
- IP=${IP}
|
||||||
- JSON_RPC_BLOCK_RANGE_CAP=10000
|
- JSON_RPC_BLOCK_RANGE_CAP=10000
|
||||||
- JSON_RPC_ENABLE=true
|
- JSON_RPC_ENABLE=true
|
||||||
- JSON_RPC_ENABLE_INDEXER=true
|
- JSON_RPC_ENABLE_INDEXER=true
|
||||||
- JSON_RPC_FEEHISTORY_CAP=100
|
- JSON_RPC_FEEHISTORY_CAP=250
|
||||||
- JSON_RPC_HTTP_TIMEOUT=30s
|
- JSON_RPC_HTTP_TIMEOUT=30s
|
||||||
- JSON_RPC_LOGS_CAP=10000
|
- JSON_RPC_LOGS_CAP=10000
|
||||||
- MIN_GAS=5000000000000basetcro
|
- MIN_GAS=5000000000000basetcro
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ PRUNING_KEEP_RECENT="${PRUNING_KEEP_RECENT:-100}"
|
|||||||
PRUNING_INTERVAL="${PRUNING_INTERVAL:-19}"
|
PRUNING_INTERVAL="${PRUNING_INTERVAL:-19}"
|
||||||
JSON_RPC_ENABLE="${JSON_RPC_ENABLE:-true}"
|
JSON_RPC_ENABLE="${JSON_RPC_ENABLE:-true}"
|
||||||
JSON_RPC_ENABLE_INDEXER="${JSON_RPC_ENABLE_INDEXER:-true}"
|
JSON_RPC_ENABLE_INDEXER="${JSON_RPC_ENABLE_INDEXER:-true}"
|
||||||
JSON_RPC_FEEHISTORY_CAP="${JSON_RPC_FEEHISTORY_CAP:-100}"
|
FEEHISTORY_CAP="${FEEHISTORY_CAP:-250}"
|
||||||
|
JSON_RPC_FEEHISTORY_CAP="${JSON_RPC_FEEHISTORY_CAP:-$FEEHISTORY_CAP}"
|
||||||
JSON_RPC_LOGS_CAP="${JSON_RPC_LOGS_CAP:-10000}"
|
JSON_RPC_LOGS_CAP="${JSON_RPC_LOGS_CAP:-10000}"
|
||||||
JSON_RPC_BLOCK_RANGE_CAP="${JSON_RPC_BLOCK_RANGE_CAP:-10000}"
|
JSON_RPC_BLOCK_RANGE_CAP="${JSON_RPC_BLOCK_RANGE_CAP:-10000}"
|
||||||
JSON_RPC_HTTP_TIMEOUT="${JSON_RPC_HTTP_TIMEOUT:-30s}"
|
JSON_RPC_HTTP_TIMEOUT="${JSON_RPC_HTTP_TIMEOUT:-30s}"
|
||||||
@@ -47,7 +48,7 @@ sed -i "/^\[json-rpc\]/,/^\[/{s|^ws-origins = .*|ws-origins = \"$JSON_RPC_WS_ORI
|
|||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^api = .*|api = \"$API\"|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^api = .*|api = \"$API\"|}" "$CONFIG_DIR/app.toml"
|
||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^enable = .*|enable = $JSON_RPC_ENABLE|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^enable = .*|enable = $JSON_RPC_ENABLE|}" "$CONFIG_DIR/app.toml"
|
||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^enable-indexer = .*|enable-indexer = $JSON_RPC_ENABLE_INDEXER|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^enable-indexer = .*|enable-indexer = $JSON_RPC_ENABLE_INDEXER|}" "$CONFIG_DIR/app.toml"
|
||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^feehistory-cap = .*|feehistory-cap = $JSON_RPC_FEEHISTORY_CAP|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^feehistory-cap = .*|feehistory-cap = $FEEHISTORY_CAP|}" "$CONFIG_DIR/app.toml"
|
||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^logs-cap = .*|logs-cap = $JSON_RPC_LOGS_CAP|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^logs-cap = .*|logs-cap = $JSON_RPC_LOGS_CAP|}" "$CONFIG_DIR/app.toml"
|
||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^block-range-cap = .*|block-range-cap = $JSON_RPC_BLOCK_RANGE_CAP|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^block-range-cap = .*|block-range-cap = $JSON_RPC_BLOCK_RANGE_CAP|}" "$CONFIG_DIR/app.toml"
|
||||||
sed -i "/^\[json-rpc\]/,/^\[/{s|^http-timeout = .*|http-timeout = \"$JSON_RPC_HTTP_TIMEOUT\"|}" "$CONFIG_DIR/app.toml"
|
sed -i "/^\[json-rpc\]/,/^\[/{s|^http-timeout = .*|http-timeout = \"$JSON_RPC_HTTP_TIMEOUT\"|}" "$CONFIG_DIR/app.toml"
|
||||||
|
|||||||
Reference in New Issue
Block a user