From 524eb89f51d69461015bc859e93e85e3db80faaf Mon Sep 17 00:00:00 2001 From: davidcauchi Date: Fri, 19 Apr 2024 12:10:53 +0200 Subject: [PATCH] Adds Hedera Testnet config --- .../config/toml/defaults/Hedera_Testnet.toml | 17 ++++ docs/CONFIG.md | 84 +++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 core/chains/evm/config/toml/defaults/Hedera_Testnet.toml diff --git a/core/chains/evm/config/toml/defaults/Hedera_Testnet.toml b/core/chains/evm/config/toml/defaults/Hedera_Testnet.toml new file mode 100644 index 00000000000..819cd905a0f --- /dev/null +++ b/core/chains/evm/config/toml/defaults/Hedera_Testnet.toml @@ -0,0 +1,17 @@ +ChainID = '296' +#considering the 3-5 (6 including a buffer) seconds of finality and 2 seconds block production +#we set the depth to 6/2 = 3 blocks +FinalityDepth = 3 +# same as block production rate +LogPollInterval = '2s' +MinIncomingConfirmations = 1 +NoNewHeadsThreshold = '30s' +# 5 since thats our consideration for finality depth & 10s exposure to api so we can always get the final blocks +RPCBlockQueryDelay = 5 + +[BalanceMonitor] +Enabled = true + +[GasEstimator] +# TODO: check this, this may not prove effective since we dont have mempool and cannot use market rates to +BumpThreshold = 5 diff --git a/docs/CONFIG.md b/docs/CONFIG.md index c33dcb6ffb8..41973c9ceee 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -3233,6 +3233,90 @@ GasLimit = 5400000

+
Hedera Testnet (296)

+ +```toml +AutoCreateKey = true +BlockBackfillDepth = 10 +BlockBackfillSkip = false +FinalityDepth = 3 +FinalityTagEnabled = false +LogBackfillBatchSize = 1000 +LogPollInterval = '2s' +LogKeepBlocksDepth = 100000 +LogPrunePageSize = 0 +BackupLogPollerBlockDelay = 100 +MinIncomingConfirmations = 1 +MinContractPayment = '0.00001 link' +NonceAutoSync = true +NoNewHeadsThreshold = '30s' +RPCDefaultBatchSize = 250 +RPCBlockQueryDelay = 5 + +[Transactions] +ForwardersEnabled = false +MaxInFlight = 16 +MaxQueued = 250 +ReaperInterval = '1h0m0s' +ReaperThreshold = '168h0m0s' +ResendAfterThreshold = '1m0s' + +[BalanceMonitor] +Enabled = true + +[GasEstimator] +Mode = 'BlockHistory' +PriceDefault = '20 gwei' +PriceMax = '115792089237316195423570985008687907853269984665.640564039457584007913129639935 tether' +PriceMin = '1 gwei' +LimitDefault = 500000 +LimitMax = 500000 +LimitMultiplier = '1' +LimitTransfer = 21000 +BumpMin = '5 gwei' +BumpPercent = 20 +BumpThreshold = 5 +EIP1559DynamicFees = false +FeeCapDefault = '100 gwei' +TipCapDefault = '1 wei' +TipCapMin = '1 wei' + +[GasEstimator.BlockHistory] +BatchSize = 25 +BlockHistorySize = 8 +CheckInclusionBlocks = 12 +CheckInclusionPercentile = 90 +TransactionPercentile = 60 + +[HeadTracker] +HistoryDepth = 100 +MaxBufferSize = 3 +SamplingInterval = '1s' + +[NodePool] +PollFailureThreshold = 5 +PollInterval = '10s' +SelectionMode = 'HighestHead' +SyncThreshold = 5 +LeaseDuration = '0s' +NodeIsSyncingEnabled = false +FinalizedBlockPollInterval = '5s' + +[OCR] +ContractConfirmations = 4 +ContractTransmitterTransmitTimeout = '10s' +DatabaseTimeout = '10s' +DeltaCOverride = '168h0m0s' +DeltaCJitterOverride = '1h0m0s' +ObservationGracePeriod = '1s' + +[OCR2] +[OCR2.Automation] +GasLimit = 5400000 +``` + +

+
zkSync Sepolia (300)

```toml