Skip to content
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

feat: txpool pending limit #1107

Merged
merged 9 commits into from
Jan 29, 2025
Merged

feat: txpool pending limit #1107

merged 9 commits into from
Jan 29, 2025

Conversation

Thegaram
Copy link

@Thegaram Thegaram commented Jan 28, 2025

1. Purpose or design rationale of this PR

This change aims to fix the recent issues where skipped transactions lead to congested mempools on follower nodes, leading to inaccurate gas price estimates. We address the issue by enforcing a hard cap on pending transactions per account, and dropping long-term pending transactions.

  • Add new flag --txpool.accountpendinglimit which specifies a hard limit on pending txs per account.
  • Enforce limit in promoteTx and truncatePending.
  • Apply lifetime cleanup to pending (previously only applied to queue).

Note: This PR is currently based on scroll-v5.8.0 so that we can easily release a hot fix without including other changes.

2. PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • feat: A new feature

3. Deployment tag versioning

Has the version in params/version.go been updated?

TBD

  • This PR doesn't involve a new deployment, git tag, docker image tag, and it doesn't affect traces
  • Yes

4. Breaking change label

Does this PR have the breaking-change label?

  • This PR is not a breaking change
  • Yes

Summary by CodeRabbit

  • New Features

    • Added a configurable limit for pending transactions per account in the transaction pool.
    • Users can now set a maximum number of executable transactions per account via command-line flag.
  • Improvements

    • Enhanced transaction pool management with more granular control over pending transactions.
    • Default limit set to 1,024 pending transactions per account.
  • Bug Fixes

    • Improved robustness of the transaction list length method to prevent runtime errors.
  • Tests

    • Introduced a new test to ensure enforcement of limits on pending transactions per account.
    • Updated existing tests to validate transaction limits across multiple accounts.
  • Chores

    • Incremented patch version from 1 to 2.

Copy link

coderabbitai bot commented Jan 28, 2025

Walkthrough

This pull request introduces a new configuration parameter AccountPendingLimit to control the maximum number of executable transactions per account in the Ethereum transaction pool. The changes span multiple files, adding a new command-line flag and updating the transaction pool's core logic to enforce a limit of 1024 pending transactions per account by default. The implementation allows users to customize this limit while maintaining the existing transaction pool functionality.

Changes

File Change Summary
cmd/geth/main.go Added TxPoolAccountPendingLimitFlag to nodeFlags
cmd/geth/usage.go Included new flag in "TRANSACTION POOL" section of AppHelpFlagGroups
cmd/utils/flags.go Defined new TxPoolAccountPendingLimitFlag and updated setTxPool function to handle the flag
core/tx_pool.go Added AccountPendingLimit to TxPoolConfig, initialized to 1024, updated sanitize, promoteTx, and truncatePending methods
core/tx_pool_test.go Added TestTransactionPendingPerAccountLimiting function to test new limits on pending transactions
core/tx_list.go Updated Len method to include a nil check for robustness
params/version.go Updated VersionPatch from 1 to 2

Possibly related PRs

Suggested labels

bump-version

Suggested reviewers

  • omerfirmak
  • colinlyguo
  • lightsing
  • jonastheis

Poem

🐰 A rabbit's tale of transaction grace,
Limits set with algorithmic embrace,
Pending txns now have their bounds,
No more chaos, no more rounds!
Ethereum's pool, now neat and tight,
Transactions flow with rabbit's might! 🚀


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d4f6fe0 and 8d7cc26.

📒 Files selected for processing (1)
  • params/version.go (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: test
🔇 Additional comments (2)
params/version.go (2)

27-27: Verify semantic versioning alignment.

The PR is labeled as "feat:" suggesting a new feature, which typically warrants a minor version bump according to semantic versioning. However, since this is intended as a hotfix release as mentioned in the PR objectives, a patch version increment might be more appropriate. Please confirm if this should be a minor version bump (5.9.0) instead of a patch version bump (5.8.2).

Additionally, please ensure this version bump is documented in the changelog.


27-27: Verify version number consistency across the codebase.

Let's ensure the version number is consistently updated across all relevant files.

✅ Verification successful

Version bump is correctly isolated to patch version

The version change is properly contained within params/version.go which is the authoritative source for the software version. Other version references in the codebase are unrelated (test data, dependencies, or build tools) and don't need to be updated.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for version number references that might need updating
echo "Searching for version number references..."
rg -g '!*.{log,md,txt}' '5\.8\.[0-9]+'

# Check package configuration files
echo "Checking package configuration files..."
fd -t f "package.json|setup.py|VERSION"

Length of output: 365


Script:

#!/bin/bash
# Search for version-related variables and constants in Go files
echo "Searching for version declarations in Go files..."
ast-grep --pattern 'Version = $_'
ast-grep --pattern 'const Version = $_'
ast-grep --pattern 'var Version = $_'

echo -e "\nSearching for version numbers in various formats..."
rg -g '!*.{log,md,txt}' '[0-9]+\.[0-9]+\.[0-9]+'

echo -e "\nChecking build and configuration files..."
fd -e yaml -e toml -e json -e xml

Length of output: 94278

✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
core/tx_pool.go (1)

447-454: Consider adding metrics for pending transaction eviction.

The implementation of lifetime cleanup for pending transactions is good, but would benefit from metrics tracking.

 if time.Since(pool.beats[addr]) > pool.config.Lifetime {
     list := pool.pending[addr].Flatten()
     for _, tx := range list {
         log.Trace("Evicting transaction due to timeout", "account", addr.Hex(), "hash", tx.Hash().Hex(), "lifetime sec", time.Since(pool.beats[addr]).Seconds(), "lifetime limit sec", pool.config.Lifetime.Seconds())
         pool.removeTx(tx.Hash(), true)
     }
-    queuedEvictionMeter.Mark(int64(len(list)))
+    pendingEvictionMeter.Mark(int64(len(list)))
 }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 447fed2 and a221edc.

📒 Files selected for processing (4)
  • cmd/geth/main.go (1 hunks)
  • cmd/geth/usage.go (1 hunks)
  • cmd/utils/flags.go (2 hunks)
  • core/tx_pool.go (6 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test
  • GitHub Check: check
🔇 Additional comments (7)
core/tx_pool.go (3)

181-182: LGTM! Clear and well-documented configuration field.

The new AccountPendingLimit field in TxPoolConfig is appropriately placed and documented.


976-980: LGTM! Proper limit enforcement during transaction promotion.

The implementation correctly checks the account's pending transaction count against the limit before promotion.


1598-1620: LGTM! Comprehensive implementation of pending transaction truncation.

The implementation properly enforces the account pending limit during periodic cleanup, updates nonces correctly, and maintains proper metrics.

cmd/geth/usage.go (1)

111-111: LGTM! Flag properly added to transaction pool section.

The new flag is correctly placed in the transaction pool flags group.

cmd/geth/main.go (1)

93-93: LGTM! Flag properly added to node flags.

The new flag is correctly added to the node configuration flags.

cmd/utils/flags.go (2)

405-409: LGTM! Clear and well-documented flag definition.

The flag is properly defined with clear usage description and correct default value.


1527-1529: LGTM! Proper configuration handling.

The flag value is correctly applied to the transaction pool configuration.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
core/tx_pool.go (1)

1608-1630: Consider optimizing the truncation logic.

While the implementation correctly enforces the account pending limit, there are a few suggestions for improvement:

  1. The truncation could be more efficient by calculating the exact number of transactions to remove instead of iterating one by one.
  2. Consider adding metrics to track the number of transactions dropped due to account limits.

Here's a suggested optimization:

 func (pool *TxPool) truncatePending() {
     for addr, list := range pool.pending {
-        if list.Len() > int(pool.config.AccountPendingLimit) {
-            caps := list.Cap(int(pool.config.AccountPendingLimit))
+        excess := list.Len() - int(pool.config.AccountPendingLimit)
+        if excess > 0 {
+            caps := list.Cap(list.Len() - excess)
             for _, tx := range caps {
                 hash := tx.Hash()
                 pool.all.Remove(hash)
                 pool.calculateTxsLifecycle(types.Transactions{tx}, time.Now())
                 pool.pendingNonces.setIfLower(addr, tx.Nonce())
                 log.Trace("Removed pending transaction to comply with hard limit", "hash", hash.Hex())
             }
             pool.priced.Removed(len(caps))
             pendingGauge.Dec(int64(len(caps)))
+            // Add new metric
+            pendingAccountLimitMeter.Mark(int64(len(caps)))
             if pool.locals.contains(addr) {
                 localGauge.Dec(int64(len(caps)))
             }
         }
     }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a221edc and 778808c.

📒 Files selected for processing (2)
  • core/tx_pool.go (8 hunks)
  • core/tx_pool_test.go (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test
  • GitHub Check: check
🔇 Additional comments (6)
core/tx_pool_test.go (2)

1100-1107: LGTM! Test case correctly verifies pending transaction handling for non-local transactions.

The test case properly validates that when nolocals is true, pending transactions are correctly evicted, ensuring the transaction pool's behavior aligns with the expected functionality.


1167-1167: Implement the TODO test case for global pending limits.

The TODO comment indicates a missing test case for transaction pool's global pending limits. This test is important to verify the correct enforcement of global transaction limits across multiple accounts.

Would you like me to help implement the test case for global pending limits? The test should verify:

  1. Transactions exceeding global limits are properly dropped
  2. The selection of which transactions to drop is fair across accounts
  3. Local transactions are preserved when appropriate
core/tx_pool.go (4)

182-183: LGTM! Well-documented configuration parameter addition.

The new AccountPendingLimit parameter is appropriately placed in the configuration struct with a clear purpose - limiting the number of executable transactions per account.


201-202: LGTM! Reasonable default value.

The default value of 1024 for AccountPendingLimit is a reasonable choice that balances resource usage with transaction throughput.


238-241: LGTM! Proper configuration validation.

The sanitization logic correctly ensures the AccountPendingLimit is at least 1, maintaining the pool's operational integrity.


986-990: LGTM! Early limit check in promoteTx.

The implementation efficiently checks the account's pending transaction limit before attempting promotion, preventing unnecessary processing.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
core/tx_pool.go (1)

1612-1634: Consider optimizing the truncation logic.

The truncation logic could be improved in two ways:

  1. Consider transaction priority/gas price when selecting which transactions to drop
  2. Add a warning log when transactions are dropped due to the limit to help with debugging

Apply this diff to add warning logs:

 if list.Len() > int(pool.config.AccountPendingLimit) {
     caps := list.Cap(int(pool.config.AccountPendingLimit))
     for _, tx := range caps {
         hash := tx.Hash()
         pool.all.Remove(hash)
         pool.calculateTxsLifecycle(types.Transactions{tx}, time.Now())
+        log.Warn("Dropping transaction due to account pending limit",
+            "account", addr,
+            "hash", hash,
+            "limit", pool.config.AccountPendingLimit)
         pool.pendingNonces.setIfLower(addr, tx.Nonce())
-        log.Trace("Removed pending transaction to comply with hard limit", "hash", hash.Hex())
     }
core/tx_pool_test.go (1)

1212-1321: LGTM! The test implementation is thorough and well-structured.

The test effectively verifies the account pending limit feature by checking:

  • Basic limit enforcement
  • Nonce gap handling
  • Global transaction counts

Consider adding test cases for:

  • Edge cases (limit=0, limit=1)
  • Transaction removal behavior
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 778808c and aae7cf0.

📒 Files selected for processing (2)
  • core/tx_pool.go (8 hunks)
  • core/tx_pool_test.go (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test
  • GitHub Check: check
🔇 Additional comments (7)
core/tx_pool.go (5)

182-183: LGTM: Configuration parameter addition looks good.

The new AccountPendingLimit configuration parameter is well-placed in the TxPoolConfig struct with a reasonable default value of 1024 transactions.

Also applies to: 201-202


238-241: LGTM: Proper configuration validation.

The sanitization logic correctly validates the AccountPendingLimit parameter and falls back to the default value if invalid.


107-107: LGTM: Added eviction metric.

The pendingEvictionMeter metric will help monitor transactions dropped due to lifetime limits.


Line range hint 434-465: LGTM: Lifetime-based eviction for both queued and pending transactions.

The implementation correctly applies lifetime-based eviction to both queued and pending transactions, which helps prevent transaction pool bloat.


986-994: Verify the impact of early transaction rejection.

The early rejection of transactions when an account's pending list is full could potentially lead to:

  1. Higher priority transactions being rejected if they arrive after the limit is reached
  2. Possible reordering of transactions that could affect user experience

Consider adding a priority-based eviction strategy instead of outright rejection.

core/tx_pool_test.go (2)

1100-1107: LGTM! The conditional check for nolocals is correctly implemented.

The changes properly handle the case when nolocals is enabled, ensuring pending transactions are cleared as expected.


1212-1321: Verify test coverage for the new account pending limit feature.

Let's check if all critical paths in the implementation are covered by tests.

✅ Verification successful

Test coverage for account pending limit feature is comprehensive

The test suite thoroughly covers all critical paths including limit enforcement, nonce gap handling, and multi-account scenarios. Consider adding a test for config sanitization as a minor improvement.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check test coverage for account pending limit feature

# Find all references to AccountPendingLimit in the codebase
echo "Searching for AccountPendingLimit usage..."
rg -A 5 "AccountPendingLimit"

# Find all test functions related to transaction pending limits
echo "Searching for related test functions..."
rg -l "TestTransaction.*Pending.*Limiting"

Length of output: 6925

core/tx_pool.go Show resolved Hide resolved
omerfirmak
omerfirmak previously approved these changes Jan 28, 2025
core/tx_pool.go Outdated Show resolved Hide resolved
core/tx_pool.go Show resolved Hide resolved
core/tx_pool.go Show resolved Hide resolved
core/tx_pool_test.go Outdated Show resolved Hide resolved
core/tx_pool_test.go Outdated Show resolved Hide resolved
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (6)
core/tx_list.go (1)

442-446: Consider documenting the nil check and reviewing other methods.

While adding a nil check is a good defensive programming practice, it would be helpful to:

  1. Document why a nil receiver is a valid state for txList
  2. Review other methods of txList that might need similar nil checks to maintain consistency
 func (l *txList) Len() int {
+	// Handle nil receiver to prevent panic
 	if l == nil {
 		return 0
 	} else {
 		return l.txs.Len()
 	}
 }
core/tx_pool.go (3)

1191-1195: Consolidate duplicate beats map cleanup logic.

The cleanup of the beats map appears in two places. Consider extracting this into a helper method to avoid duplication and ensure consistent cleanup.

+func (pool *TxPool) cleanupBeats(addr common.Address) {
+	if pool.queue[addr].Empty() && pool.pending[addr].Empty() {
+		delete(pool.beats, addr)
+	}
+}

 func (pool *TxPool) removeTx(hash common.Hash, outofbound bool) {
 	// ...
-	defer func(addr common.Address) {
-		if pool.queue[addr].Empty() && pool.pending[addr].Empty() {
-			delete(pool.beats, addr)
-		}
-	}(addr)
+	defer func(addr common.Address) { pool.cleanupBeats(addr) }(addr)
 	// ...
 }

 func (pool *TxPool) promoteExecutables(accounts []common.Address) []*types.Transaction {
 	// ...
-	if pool.queue[addr].Empty() && pool.pending[addr].Empty() {
-		delete(pool.beats, addr)
-	}
+	pool.cleanupBeats(addr)
 	// ...
 }

Also applies to: 1587-1589


1619-1641: Optimize truncatePending implementation.

The current implementation has a few areas for optimization:

  1. The loop could be combined with the global slots check
  2. The caps slice allocation could be optimized for large lists
 func (pool *TxPool) truncatePending() {
+	pending := uint64(0)
+	oversizedAccounts := make(map[common.Address]struct{})
+
 	for addr, list := range pool.pending {
+		size := uint64(list.Len())
+		pending += size
 		if list.Len() > int(pool.config.AccountPendingLimit) {
+			oversizedAccounts[addr] = struct{}{}
+		}
+	}
+
+	// First handle oversized accounts
+	for addr := range oversizedAccounts {
+		list := pool.pending[addr]
 		caps := list.Cap(int(pool.config.AccountPendingLimit))
 		for _, tx := range caps {
 			hash := tx.Hash()
 			pool.all.Remove(hash)
 			pool.calculateTxsLifecycle(types.Transactions{tx}, time.Now())
 			pool.pendingNonces.setIfLower(addr, tx.Nonce())
 			log.Trace("Removed pending transaction to comply with hard limit", "hash", hash.Hex())
 		}
 		pool.priced.Removed(len(caps))
 		pendingGauge.Dec(int64(len(caps)))
 		if pool.locals.contains(addr) {
 			localGauge.Dec(int64(len(caps)))
 		}
 	}

-	pending := uint64(0)
-	for _, list := range pool.pending {
-		pending += uint64(list.Len())
-	}
 	if pending <= pool.config.GlobalSlots {
 		return
 	}

986-994: Enhance logging for transaction rejections.

When a transaction is rejected due to the account pending limit, it would be helpful to log additional context to aid in debugging.

 	// Account pending list is full
 	if uint64(list.Len()) >= pool.config.AccountPendingLimit {
+		log.Debug("Rejecting transaction - account pending limit reached",
+			"account", addr.Hex(),
+			"hash", hash.Hex(),
+			"current", list.Len(),
+			"limit", pool.config.AccountPendingLimit)
 		pool.all.Remove(hash)
 		pool.calculateTxsLifecycle(types.Transactions{tx}, time.Now())
 		pool.priced.Removed(1)
 		pendingDiscardMeter.Mark(1)
 		return false
 	}
core/tx_pool_test.go (2)

964-1046: LGTM with suggestions for improvement.

The test comprehensively verifies the transaction pool's behavior regarding account pending limits and transaction lifetime. However, consider these improvements:

  1. Extract magic numbers into named constants for better readability:
-  tx := pricedTransaction(0, 100000, big.NewInt(1), remote)
+  const (
+    testGasLimit = 100000
+    testGasPrice = 1
+  )
+  tx := pricedTransaction(0, testGasLimit, big.NewInt(testGasPrice), remote)
  1. Consider using testing.T.Run() to organize the test into logical sub-tests:
t.Run("Initial Transaction Acceptance", func(t *testing.T) { ... })
t.Run("Lifetime Eviction", func(t *testing.T) { ... })
t.Run("Account Pending Limit", func(t *testing.T) { ... })

1187-1194: Enhance test coverage for transaction size validation.

While the test covers basic scenarios, consider adding these test cases for better coverage:

  1. Edge case exactly at the limit
  2. Transaction with empty payload
  3. Multiple transactions that collectively exceed the block size
 tests := []struct {
     name string
     tx   *types.Transaction
     want error
 }{
     {"Valid transaction", validTx, nil},
     {"Oversized transaction", oversizedTx, ErrOversizedData},
+    {"Edge case - exactly at limit", exactSizeTx, nil},
+    {"Empty payload", emptyTx, nil},
 }

Also, consider adding assertions to verify the actual payload size:

assert.Equal(t, tt.tx.Size(), uint64(float64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock)*float64(0.9)), "Unexpected transaction size")
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aae7cf0 and d4f6fe0.

📒 Files selected for processing (3)
  • core/tx_list.go (1 hunks)
  • core/tx_pool.go (10 hunks)
  • core/tx_pool_test.go (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: test
🔇 Additional comments (2)
core/tx_pool.go (2)

182-183: LGTM! Well-documented configuration parameter.

The new configuration parameter is well-documented and has a reasonable default value.

Also applies to: 201-202


238-241: LGTM! Proper validation of configuration parameter.

The sanitize method properly validates the new configuration parameter and provides appropriate warnings.

jonastheis
jonastheis previously approved these changes Jan 29, 2025
omerfirmak
omerfirmak previously approved these changes Jan 29, 2025
@Thegaram Thegaram dismissed stale reviews from omerfirmak and jonastheis via 8d7cc26 January 29, 2025 18:58
@Thegaram Thegaram merged commit d2f19ff into develop Jan 29, 2025
9 checks passed
@Thegaram Thegaram deleted the feat-txpool-pending-limit branch January 29, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants