Skip to content

Commit

Permalink
updated configs
Browse files Browse the repository at this point in the history
  • Loading branch information
simsonraj committed Sep 19, 2024
1 parent 87e0694 commit e811ae0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 17 deletions.
10 changes: 4 additions & 6 deletions core/chains/evm/config/toml/defaults/Hedera_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ FinalityDepth = 10
# Hedera has high TPS, so polling less often
LogPollInterval = '10s'
MinIncomingConfirmations = 1
# Turning off the liveness detection, since the Websocket connection is not reliable, can be turned on if needed
NoNewHeadsThreshold = '0'

[BalanceMonitor]
Enabled = true

[GasEstimator]
Mode = 'SuggestedPrice'
# Since Hedera dont have mempool and there's no way for a node to front run or a user to bribe a node to submit the transaction earlier than it's consensus timestamp,
# but they have automated congesting pricing throttling which would mean at high sustained level the gasPrice itself could be increased to prevent malicious behaviour.
# But they have automated congesting pricing throttling which would mean at high sustained level the gasPrice itself could be increased to prevent malicious behaviour.
# Disabling the Bumpthreshold as TXM now implicity handles the bumping after checking on-chain nonce & re-broadcast for Hedera chain type
BumpThreshold = 0
BumpMin = '10 gwei'
Expand All @@ -25,9 +23,9 @@ BumpPercent = 20
# To hit throttling you'd need to maintain 15 m gas /sec over a prolonged period of time.
# Because Hedera's block times are every 2 secs it's less less likely to happen as compared to other chains
# Setting this to little higher even though Hedera has High TPS, We have seen 10-12s to get the trasaction mined & 20-25s incase of failures
ResendAfterThreshold = '1m'
# Accounting for Node syncs & avoid re-sending txns before fetching the receipt, setting to 2m
ResendAfterThreshold = '2m'


[NodePool]
# Disabling sync threshold check for testing
SyncThreshold = 0
SyncThreshold = 10
7 changes: 4 additions & 3 deletions core/chains/evm/config/toml/defaults/Hedera_Testnet.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ChainID = '296'
ChainType = 'hedera'
# 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, setting to 10 for safety
# We set the depth to 6/2 = 3 blocks, setting to 10 for safety
FinalityDepth = 10
# Hedera has high TPS, so polling less often
LogPollInterval = '10s'
Expand All @@ -13,7 +13,7 @@ Enabled = true
[GasEstimator]
Mode = 'SuggestedPrice'
# Since Hedera dont have mempool and there's no way for a node to front run or a user to bribe a node to submit the transaction earlier than it's consensus timestamp,
# but they have automated congesting pricing throttling which would mean at high sustained level the gasPrice itself could be increased to prevent malicious behaviour.
# But they have automated congesting pricing throttling which would mean at high sustained level the gasPrice itself could be increased to prevent malicious behaviour.
# Disabling the Bumpthreshold as TXM now implicity handles the bumping after checking on-chain nonce & re-broadcast for Hedera chain type
BumpThreshold = 0
BumpMin = '10 gwei'
Expand All @@ -23,7 +23,8 @@ BumpPercent = 20
# To hit throttling you'd need to maintain 15 m gas /sec over a prolonged period of time.
# Because Hedera's block times are every 2 secs it's less less likely to happen as compared to other chains
# Setting this to little higher even though Hedera has High TPS, We have seen 10-12s to get the trasaction mined & 20-25s incase of failures
ResendAfterThreshold = '1m'
# Accounting for Node syncs & avoid re-sending txns before fetching the receipt, setting to 2m
ResendAfterThreshold = '2m'


[NodePool]
Expand Down
30 changes: 22 additions & 8 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4017,7 +4017,8 @@ BackupLogPollerBlockDelay = 100
MinIncomingConfirmations = 1
MinContractPayment = '0.00001 link'
NonceAutoSync = true
NoNewHeadsThreshold = '0s'
NoNewHeadsThreshold = '3m0s'
LogBroadcasterEnabled = true
RPCDefaultBatchSize = 250
RPCBlockQueryDelay = 1
FinalizedBlockOffset = 0
Expand All @@ -4029,7 +4030,7 @@ MaxInFlight = 16
MaxQueued = 250
ReaperInterval = '1h0m0s'
ReaperThreshold = '168h0m0s'
ResendAfterThreshold = '1m0s'
ResendAfterThreshold = '2m0s'

[Transactions.AutoPurge]
Enabled = false
Expand All @@ -4046,7 +4047,7 @@ LimitDefault = 500000
LimitMax = 500000
LimitMultiplier = '1'
LimitTransfer = 21000
EstimateGasLimit = false
EstimateLimit = false
BumpMin = '10 gwei'
BumpPercent = 20
BumpThreshold = 0
Expand All @@ -4062,6 +4063,9 @@ CheckInclusionBlocks = 12
CheckInclusionPercentile = 90
TransactionPercentile = 60

[GasEstimator.FeeHistory]
CacheTimeout = '10s'

[HeadTracker]
HistoryDepth = 100
MaxBufferSize = 3
Expand All @@ -4073,7 +4077,7 @@ FinalityTagBypass = true
PollFailureThreshold = 5
PollInterval = '10s'
SelectionMode = 'HighestHead'
SyncThreshold = 0
SyncThreshold = 10
LeaseDuration = '0s'
NodeIsSyncingEnabled = false
FinalizedBlockPollInterval = '5s'
Expand All @@ -4091,6 +4095,9 @@ ObservationGracePeriod = '1s'
[OCR2]
[OCR2.Automation]
GasLimit = 5400000

[Workflow]
GasLimitDefault = 400000
```

</p></details>
Expand All @@ -4112,7 +4119,8 @@ BackupLogPollerBlockDelay = 100
MinIncomingConfirmations = 1
MinContractPayment = '0.00001 link'
NonceAutoSync = true
NoNewHeadsThreshold = '0s'
NoNewHeadsThreshold = '3m0s'
LogBroadcasterEnabled = true
RPCDefaultBatchSize = 250
RPCBlockQueryDelay = 1
FinalizedBlockOffset = 0
Expand All @@ -4124,7 +4132,7 @@ MaxInFlight = 16
MaxQueued = 250
ReaperInterval = '1h0m0s'
ReaperThreshold = '168h0m0s'
ResendAfterThreshold = '1m0s'
ResendAfterThreshold = '2m0s'

[Transactions.AutoPurge]
Enabled = false
Expand All @@ -4141,7 +4149,7 @@ LimitDefault = 500000
LimitMax = 500000
LimitMultiplier = '1'
LimitTransfer = 21000
EstimateGasLimit = false
EstimateLimit = false
BumpMin = '10 gwei'
BumpPercent = 20
BumpThreshold = 0
Expand All @@ -4157,6 +4165,9 @@ CheckInclusionBlocks = 12
CheckInclusionPercentile = 90
TransactionPercentile = 60

[GasEstimator.FeeHistory]
CacheTimeout = '10s'

[HeadTracker]
HistoryDepth = 100
MaxBufferSize = 3
Expand All @@ -4168,7 +4179,7 @@ FinalityTagBypass = true
PollFailureThreshold = 5
PollInterval = '10s'
SelectionMode = 'HighestHead'
SyncThreshold = 0
SyncThreshold = 10
LeaseDuration = '0s'
NodeIsSyncingEnabled = false
FinalizedBlockPollInterval = '5s'
Expand All @@ -4186,6 +4197,9 @@ ObservationGracePeriod = '1s'
[OCR2]
[OCR2.Automation]
GasLimit = 5400000

[Workflow]
GasLimitDefault = 400000
```

</p></details>
Expand Down

0 comments on commit e811ae0

Please sign in to comment.