-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements #15695
base: release/2.19.0-dual-transmission
Are you sure you want to change the base?
Improvements #15695
Conversation
I see you updated files related to
|
- ChainType: invalid value (Foo): must not be set with this chain id | ||
- Nodes: missing: must have at least one node | ||
- ChainType: invalid value (Foo): must be one of arbitrum, astar, celo, gnosis, hedera, kroma, mantle, metis, optimismBedrock, scroll, wemix, xlayer, zkevm, zksync, zircuit, dualBroadcast or omitted | ||
- HeadTracker.HistoryDepth: invalid value (30): must be greater than or equal to FinalizedBlockOffset | ||
- GasEstimator.BumpThreshold: invalid value (0): cannot be 0 if auto-purge feature is enabled for Foo | ||
- Transactions.AutoPurge.Threshold: missing: needs to be set if auto-purge feature is enabled for Foo | ||
- Transactions.AutoPurge.MinAttempts: missing: needs to be set if auto-purge feature is enabled for Foo | ||
- TxmV2.TxmV2.BlockTime: missing: must be set if txmv2 feature is enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra TxmV2?
- 5.Transactions.AutoPurge.DetectionApiUrl: invalid value (): must be set for scroll | ||
- 5: 2 errors: | ||
- Transactions.AutoPurge.DetectionApiUrl: invalid value (): must be set for scroll | ||
- TxmV2.TxmV2.BlockTime: missing: must be set if txmv2 feature is enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra TxmV2?
if time.Since(tx.LastBroadcastAt) > threshold && !tx.LastBroadcastAt.IsZero() { | ||
s.lggr.Debugf("TxID: %v last broadcast was: %v which is more than the max configured duration: %v. Transaction is now considered stuck and will be purged.", | ||
tx.ID, tx.LastBroadcastAt, threshold) | ||
if tx.LastBroadcastAt != nil && min(time.Since(*tx.LastBroadcastAt), time.Since(s.lastPurgeMap[tx.FromAddress])) > threshold { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can s.lastPurgeMap[tx.FromAddress] also be nil?
for _, address := range addresses { | ||
if _, exists := m.InMemoryStoreMap[address]; exists { | ||
return fmt.Errorf("address %v already exists in store manager", address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it fine to continue updating m.InMemoryStoreMap[address] in case exists is true? (Before this PR, we would have returned)
@@ -451,6 +452,20 @@ func (c *Chain) ValidateConfig() (err error) { | |||
err = multierr.Append(err, commonconfig.ErrInvalid{Name: "GasEstimator.BumpThreshold", Value: 0, Msg: fmt.Sprintf("cannot be 0 if Transactions.AutoPurge.MinAttempts is set for %s", chainType)}) | |||
} | |||
} | |||
case chaintype.ChainDualBroadcast: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update the PR description? Right now it just says "improvements", whereas, at least it takes care of the ChainDualBroadcast chain type.
Please, also specify what is the old vs new behavior after this PR is merged.
No description provided.