Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

chore(deps): geth v.1.13.4 and cosmos-sdk bump #1288

Merged
merged 8 commits into from
Nov 6, 2023
Merged

Conversation

itsdevbear
Copy link
Member

@itsdevbear itsdevbear commented Nov 5, 2023

Summary by CodeRabbit

  • New Features

    • Introduced a default value for the transaction journal path if not provided, enhancing the reliability of transaction handling.
  • Refactor

    • Updated the configuration structure to use the default legacy transaction pool configuration, improving code maintainability.

@itsdevbear itsdevbear requested a review from ocnc November 5, 2023 19:02
Copy link

coderabbitai bot commented Nov 5, 2023

Walkthrough

The changes introduced in the codebase primarily focus on the configuration of the legacy transaction pool. The updates ensure that the LegacyTxPool.Journal field has a default value if not provided, and the LegacyTxPool field in the Config struct is updated to use the default configuration.

Changes

File Path Summary
cosmos/config/config.go Added a condition to assign a default value to conf.Polar.LegacyTxPool.Journal if it's empty.
eth/polar/config.go Declared legacyPool variable with default configuration, set legacyPool.Journal to an empty string, and updated LegacyTxPool field in the Config struct to use legacyPool.
contracts/lib/forge-std Subproject commit changed from 9fec3a49630d8086cac96ea8ff3a2137a23f96ed to 267acd30a625086b3f16e1a28cfe0c5097fa46b8. No specific alterations or modifications mentioned.
contracts/lib/solmate Subproject commit changed from 2001af43aedb46fdc2335d2a7714fb2dae7cfcd1 to e0e9ff05d8aa5c7c48465511f85a6efdf5d5c30d. No specific alterations or modifications mentioned.
cosmos/runtime/txpool/handler.go Modified the TxSubProvider interface and the SubscribeNewTxsEvent method to include a reorgs parameter. Updated the mainLoop function to use SubscribeTransactions with the reorgs parameter set to true.
cosmos/runtime/txpool/handler_test.go Replaced the SubscribeNewTxsEvent function with SubscribeTransactions function in the subprovider object. The SubscribeTransactions function now takes two arguments instead of one.
cosmos/runtime/txpool/mocks/geth_tx_pool.go Renamed the SubscribeNewTxsEvent function to SubscribeTransactions and updated its signature. Renamed the GethTxPool_SubscribeNewTxsEvent_Call struct to GethTxPool_SubscribeTransactions_Call and updated its methods accordingly.
cosmos/runtime/txpool/mocks/tx_sub_provider.go Renamed the SubscribeNewTxsEvent method to SubscribeTransactions and updated its signature.
eth/eth.go Modified the TxPool interface by renaming the SubscribeNewTxsEvent function to SubscribeTransactions and updating its signature.
eth/polar/api_backend.go Modified the SubscribeNewTxsEvent function in the backend struct to use SubscribeTransactions with the reorgs parameter set to true.

Poem

🍂 As the leaves fall this November,
Code changes we shall always remember.
A pool of transactions, legacy in name,
Now has a home, no longer the same.
🐇 Hopping through lines of code, so neat,
Making sure the config is complete.
Celebrate the changes, for they are grand,
Crafted by a coder's expert hand. 🎉


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

@itsdevbear itsdevbear changed the title choire(deps): geth v.1.13.4 and cosmos-sdk bump chore(deps): geth v.1.13.4 and cosmos-sdk bump Nov 5, 2023
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 34cec68 and 5e4b215.
Files selected for processing (2)
  • contracts/lib/forge-std (1 hunks)
  • contracts/lib/solmate (1 hunks)
Files skipped from review due to trivial changes (2)
  • contracts/lib/forge-std
  • contracts/lib/solmate

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 5e4b215 and d88a068.
Files ignored due to filter (17)
  • build/tools/go.mod
  • build/tools/go.sum
  • contracts/go.mod
  • contracts/go.sum
  • cosmos/go.mod
  • cosmos/go.sum
  • e2e/localnet/go.mod
  • e2e/localnet/go.sum
  • e2e/precompile/go.mod
  • e2e/precompile/go.sum
  • e2e/testapp/go.mod
  • e2e/testapp/go.sum
  • eth/go.mod
  • eth/go.sum
  • go.work.sum
  • lib/go.mod
  • lib/go.sum
Files selected for processing (6)
  • cosmos/runtime/txpool/handler.go (2 hunks)
  • cosmos/runtime/txpool/handler_test.go (1 hunks)
  • cosmos/runtime/txpool/mocks/geth_tx_pool.go (2 hunks)
  • cosmos/runtime/txpool/mocks/tx_sub_provider.go (2 hunks)
  • eth/eth.go (1 hunks)
  • eth/polar/api_backend.go (1 hunks)
Additional comments: 9
cosmos/runtime/txpool/handler_test.go (1)
  • 57-63: Ensure that all calls to SubscribeTransactions throughout the codebase have been updated to match the new signature. Also, verify that the h.Start() function has been updated to handle the new arguments correctly.
eth/polar/api_backend.go (1)
  • 523-527: The function SubscribeNewTxsEvent has been updated to call SubscribeTransactions instead of SubscribeNewTxsEvent. Ensure that the new function SubscribeTransactions provides the same functionality as the old one or that the changes are intended and correctly handled in the rest of the codebase.
cosmos/runtime/txpool/mocks/tx_sub_provider.go (2)
  • 22-34: The SubscribeTransactions method has been updated to include a new parameter reorgs. Ensure that all calls to this method throughout the codebase have been updated to match the new signature.

  • 38-68: The TxSubProvider_SubscribeTransactions_Call struct and its methods have been updated to reflect the changes in the SubscribeTransactions method. This looks fine as long as the changes are consistent with the updated method.

eth/eth.go (1)
  • 50-56: The SubscribeNewTxsEvent function has been renamed to SubscribeTransactions and now takes an additional boolean parameter reorgs. The return type of the function SubscribeTransactions has been changed to event.Subscription. Ensure that all calls to this function throughout the codebase have been updated to match the new signature.
- SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
+ SubscribeTransactions(ch chan<- core.NewTxsEvent, reorgs bool) event.Subscription
cosmos/runtime/txpool/handler.go (2)
  • 51-55: The SubscribeTransactions method signature has been updated to include a reorgs parameter. Ensure that all calls to this method throughout the codebase have been updated to match the new signature.

  • 136-142: The SubscribeNewTxsEvent method has been replaced with SubscribeTransactions and the reorgs parameter is set to true. This change should be verified to ensure it doesn't introduce any unexpected behavior.

cosmos/runtime/txpool/mocks/geth_tx_pool.go (2)
  • 209-221: The function SubscribeTransactions has been updated to take two arguments: ch and reorgs. Ensure that all calls to this function throughout the codebase have been updated to match the new signature.

  • 228-254: The struct GethTxPool_SubscribeTransactions_Call and its methods have been updated to reflect the changes in the function signatures. Ensure that all references to this struct and its methods throughout the codebase have been updated accordingly.

Copy link

codecov bot commented Nov 5, 2023

Codecov Report

Merging #1288 (34be780) into main (2c82469) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1288   +/-   ##
=======================================
  Coverage   48.54%   48.54%           
=======================================
  Files          84       84           
  Lines        4857     4857           
=======================================
  Hits         2358     2358           
  Misses       2325     2325           
  Partials      174      174           
Files Coverage Δ
cosmos/runtime/txpool/handler.go 64.28% <100.00%> (ø)

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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d88a068 and bf4e2cc.
Files selected for processing (1)
  • e2e/localnet/utils/utils.go (2 hunks)
Additional comments: 1
e2e/localnet/utils/utils.go (1)
  • 22-28: The import of the math/big package seems to be unused in the provided code. Please ensure that it is used elsewhere in the code that is not shown here. If not, it should be removed to keep the code clean and avoid unnecessary imports.

e2e/localnet/utils/utils.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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d88a068 and 34be780.
Files selected for processing (1)
  • e2e/localnet/utils/utils.go (2 hunks)
Additional comments: 1
e2e/localnet/utils/utils.go (1)
  • 22-28: The import of the math/big package is new. Ensure that it is used correctly in the code.

e2e/localnet/utils/utils.go Show resolved Hide resolved
@itsdevbear itsdevbear merged commit 594360d into main Nov 6, 2023
13 checks passed
@itsdevbear itsdevbear deleted the bump-geth-sdk branch November 6, 2023 01:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants