Skip to content

Conversation

@tzdybal
Copy link
Member

@tzdybal tzdybal commented Sep 20, 2024

This PR updates the github.com/rollkit/go-da dependency to version v0.6.1.
It refactors the test mocks by replacing mockda.MockDA with mocks.DA and deletes the old da/mock/mock.go file.
The code and tests has been modified to use structured results from GetIDs.

Summary by CodeRabbit

  • New Features

    • Introduced a new command-line flag --rollkit.da_submit_options for enhanced control over data availability transaction submissions.
    • Added support for submitting options in the DAClient to improve submission flexibility.
  • Improvements

    • Enhanced mock functionality with a more flexible argument matching strategy in tests.
    • Updated the DAClient initialization process to accommodate additional configuration options.
    • Improved handling of block header IDs in the RetrieveHeaders method.
  • Bug Fixes

    • Adjusted test cases to reflect changes in mock implementations, ensuring accurate error handling and timeout management.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 20, 2024

Walkthrough

The changes involve a transition to a new mocking framework in the testing files, specifically replacing mockda.MockDA with mocks.DA. Additionally, new command-line flags and configuration options for data availability (DA) submissions have been introduced, enhancing the functionality of the rollkit start command. The DAClient struct has been updated to accommodate new submission options, and various test files have been modified to reflect these changes in both structure and method calls.

Changes

Files Change Summary
block/manager_test.go Updated mock DA implementation from mockda.MockDA to mocks.DA, with changes to method calls to use mock.Anything for flexibility in tests.
da/da.go, da/da_test.go Added SubmitOptions field to DAClient, modified NewDAClient constructor, and refactored SubmitHeaders method to handle new submission options. Updated tests to reflect new mock structure and added submitTimeout constant.
config/config.go Introduced FlagDASubmitOptions constant and DASubmitOptions field in NodeConfig, updated GetViperConfig and AddFlags methods to support new flag.
cmd/rollkit/docs/rollkit_start.md Added a new command-line flag --rollkit.da_submit_options string for specifying DA submission options.
node/full.go, node/full_node_integration_test.go, node/full_node_test.go, node/helpers_test.go Updated DAClient instantiation to include new parameters for submission options, modifying method signatures accordingly.

Possibly related PRs

  • fix(manager): refactor lazy mode flags #1800: The changes in block/manager_test.go involve modifications to the mock implementation, which aligns with the changes made in the block/manager.go file regarding the management of transaction accumulation, indicating a related update in the testing strategy for the manager's functionality.

Suggested labels

T:dev-usability-and-ux

Suggested reviewers

  • tuxcanfly
  • MSevey
  • Manav-Aggarwal
  • gupadhyaya

Poem

🐇 In the garden where our code does bloom,
Mocks have changed, dispelling gloom.
With options added, the client’s bright,
Hopping forward, all feels right!
New flags and tests, a joyful cheer,
In this code, we hold so dear! 🌼


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 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.

@tzdybal tzdybal changed the title Update go-da to v0.6.1 chore(deps): update go-da to v0.6.1 Sep 20, 2024
@codecov
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 26 lines in your changes missing coverage. Please review.

Project coverage is 43.12%. Comparing base (316bb12) to head (5a7016e).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
test/mocks/DA.go 0.00% 23 Missing ⚠️
node/full.go 50.00% 1 Missing and 1 partial ⚠️
da/da.go 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1852      +/-   ##
==========================================
- Coverage   43.14%   43.12%   -0.02%     
==========================================
  Files          80       79       -1     
  Lines       10387    10390       +3     
==========================================
  Hits         4481     4481              
- Misses       5165     5168       +3     
  Partials      741      741              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tzdybal tzdybal marked this pull request as ready for review September 20, 2024 16:48
@RollkitBot RollkitBot requested review from a team, MSevey, tuxcanfly and yarikbratashchuk and removed request for a team September 20, 2024 16:48
Copy link
Contributor

@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: 4

Outside diff range and nitpick comments (1)
da/da_test.go (1)

Line range hint 343-354: LGTM, but consider tracking the namespace issue.

The doTestRetrieveNoBlocksFound function correctly tests retrieving non-existent blocks and asserts that it returns a StatusError. However, there is a commented-out assertion for StatusNotFound and ErrBlobNotFound due to a known issue with namespaces.

Consider tracking the namespace issue (evstack/go-da#94) to enable the commented-out assertion in the future.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 316bb12 and 795cba2.

Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
Files selected for processing (9)
  • block/manager_test.go (3 hunks)
  • da/da.go (3 hunks)
  • da/da_test.go (7 hunks)
  • da/mock/mock.go (0 hunks)
  • go.mod (1 hunks)
  • test/mocks/Application.go (1 hunks)
  • test/mocks/Client.go (1 hunks)
  • test/mocks/DA.go (3 hunks)
  • test/mocks/Store.go (1 hunks)
Files not reviewed due to no reviewable changes (1)
  • da/mock/mock.go
Files skipped from review due to trivial changes (3)
  • test/mocks/Application.go
  • test/mocks/Client.go
  • test/mocks/Store.go
Additional context used
GitHub Check: codecov/patch
test/mocks/DA.go

[warning] 78-78: test/mocks/DA.go#L78
Added line #L78 was not covered by tests


[warning] 85-85: test/mocks/DA.go#L85
Added line #L85 was not covered by tests


[warning] 87-87: test/mocks/DA.go#L87
Added line #L87 was not covered by tests


[warning] 90-90: test/mocks/DA.go#L90
Added line #L90 was not covered by tests


[warning] 94-94: test/mocks/DA.go#L94
Added line #L94 was not covered by tests


[warning] 196-197: test/mocks/DA.go#L196-L197
Added lines #L196 - L197 were not covered by tests


[warning] 199-200: test/mocks/DA.go#L199-L200
Added lines #L199 - L200 were not covered by tests


[warning] 203-206: test/mocks/DA.go#L203-L206
Added lines #L203 - L206 were not covered by tests


[warning] 208-212: test/mocks/DA.go#L208-L212
Added lines #L208 - L212 were not covered by tests


[warning] 216-219: test/mocks/DA.go#L216-L219
Added lines #L216 - L219 were not covered by tests


[warning] 222-222: test/mocks/DA.go#L222
Added line #L222 was not covered by tests

Additional comments not posted (24)
da/da.go (3)

200-200: LGTM!

The change from ids to result reflects the updated data structure returned by the GetIDs method. The error handling for the GetIDs method call is also correctly implemented.


212-212: LGTM!

The condition has been correctly updated to check the length of result.IDs, which is consistent with the updated data structure returned by the GetIDs method.


224-224: LGTM!

The Get method call has been correctly updated to use result.IDs, which is consistent with the updated data structure returned by the GetIDs method.

go.mod (1)

25-25: Dependency update looks good, but verify compatibility.

The update of github.com/rollkit/go-da from v0.5.2 to v0.6.1 aligns with the PR objective. However, since this is a major version update, it's crucial to thoroughly verify the compatibility of the updated package with the current codebase.

Please ensure that:

  1. All usages of the go-da package in the codebase are compatible with the v0.6.1 API.
  2. Adequate testing is performed to confirm that the integration of the updated package doesn't introduce any breaking changes or new bugs.
da/da_test.go (11)

Line range hint 46-69: LGTM!

The TestMain function correctly sets up and tears down the mock gRPC and JSONRPC DA services for testing.


Line range hint 71-115: LGTM!

The TestMockDAErrors function has been updated to use the new mocks.DA package and mock.Anything for more flexible testing scenarios. The introduction of the submitTimeout constant improves readability and maintainability.


Line range hint 117-153: LGTM!

The TestSubmitRetrieve function correctly sets up different DA clients and runs a list of test cases for each client to test the submit and retrieve functionality.


Line range hint 155-163: LGTM!

The startMockDAClientGRPC function correctly starts a mock DA client using gRPC and returns a new DAClient instance.


Line range hint 165-171: LGTM!

The startMockDAClientJSONRPC function correctly starts a mock DA client using JSONRPC and returns a new DAClient instance.


Line range hint 173-179: LGTM!

The doTestSubmitTimeout function correctly tests the submit timeout scenario using the new submitTimeout constant.


Line range hint 181-188: LGTM!

The doTestMaxBlockSizeError function correctly tests the max block size error scenario.


Line range hint 190-248: LGTM!

The doTestSubmitRetrieve function correctly tests the submit and retrieve functionality by submitting headers in batches, recording the DA height for each header, and validating the retrieved headers.


Line range hint 250-260: LGTM!

The doTestTxTooLargeError function correctly tests the tx too large error scenario.


Line range hint 262-275: LGTM!

The doTestSubmitEmptyBlocks function correctly tests submitting empty blocks and asserts that they are submitted successfully.


Line range hint 298-310: LGTM!

The doTestSubmitSmallBlocksBatch function correctly tests submitting a batch of small blocks and asserts that they are submitted successfully as a batch.

block/manager_test.go (7)

Line range hint 229-263: LGTM!

The test function TestSubmitBlocksToMockDA thoroughly tests the submitHeadersToDA function of the block manager with different gas price and multiplier configurations. It sets up a mock DA to simulate timeouts and successful submissions with retries, allowing for controlled testing of the retry logic and gas price adjustments. The test cases cover various scenarios, and the assertions ensure the expected behavior.


Line range hint 574-603: LGTM!

The test function Test_submitBlocksToDA_BlockMarshalErrorCase1 correctly tests the scenario where the first block has a marshaling error. It sets up a mock store and invalidates the header of the first block to simulate the error. The assertions verify that an error is returned and all three blocks remain pending, as expected when the first block fails to be submitted to the DA layer.


Line range hint 606-639: LGTM!

The test function Test_submitBlocksToDA_BlockMarshalErrorCase2 correctly tests the scenario where the third block has a marshaling error. It sets up a mock store, invalidates the header of the third block, and verifies the expected calls to SetMetadata. The assertions confirm that an error is returned and only the third block remains pending, as the first two blocks were successfully submitted to the DA layer.


Line range hint 652-712: LGTM!

The test function Test_isProposer comprehensively tests the isProposer function with well-defined test cases. It covers the important scenarios, such as when the signing key matches the genesis proposer public key, when it doesn't match, and when there are no validators in the genesis. The assertions correctly verify the expected results and errors for each test case.


Line range hint 714-720: LGTM!

The test function Test_publishBlock_ManagerNotProposer correctly tests the scenario where the block manager is not the proposer. It sets up a block manager with isProposer set to false and verifies that calling publishBlock returns the expected ErrNotProposer error.


Line range hint 722-846: LGTM!

The test function TestManager_publishBlock thoroughly tests the publishBlock function of the block manager. It sets up a comprehensive mock environment, including a mock store, logger, and application, and configures the mock application to return specific responses for ABCI methods. The test case focuses on the scenario where saving block responses fails and correctly asserts the expected error. The test logic is well-structured and covers the important scenario of handling errors during block publishing.


Line range hint 848-912: LGTM!

The test function TestManager_getRemainingSleep comprehensively tests the getRemainingSleep function of the block manager. It covers various scenarios, including normal aggregation and lazy aggregation, with different elapsed times and block building states. The test cases are well-defined, and the assertions using WithinDuration ensure that the actual sleep duration is within the expected range. The test logic is thorough and verifies the correct behavior of the getRemainingSleep function.

test/mocks/DA.go (2)

8-8: Import da package is necessary for updated types.

The addition of the import statement for da "github.com/rollkit/go-da" is appropriate to use the da.GetIDsResult type in the GetIDs method.


196-223: Ensure mock expectations are set for SubmitWithOptions in tests.

When using this mock in your tests, make sure to define expectations and return values for SubmitWithOptions where applicable. Missing mock setups can lead to unexpected panics or test failures due to unregistered method calls.

Run the following script to identify test files that may need updates:

This will help you locate tests where you might need to add mock expectations.

Verification successful

Mock expectations for SubmitWithOptions may not be widely needed, but consider reviewing DA client usage in tests.

While SubmitWithOptions is not directly called in the test files, it may be indirectly tested through various DA client setups (mock, dummy, JSON-RPC, gRPC) used in the test suite. However, to ensure comprehensive test coverage:

  • Review existing DA client usage in tests, particularly in files like node/helpers_test.go, node/full_node_test.go, and da/da_test.go.
  • Consider adding specific tests for SubmitWithOptions if you find that its functionality is not adequately covered by the existing test suite.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Find test files that use `DA` and may require expectations for `SubmitWithOptions`.

rg --type go 'NewDA\(' --glob '*_test.go' -A 20 | rg 'SubmitWithOptions'

Length of output: 72


Script:

#!/bin/bash
# Description: Check for test files and search for relevant mock setups

# Check for test files
echo "Test files in the repository:"
fd -e go --glob '*_test.go'

echo "\nSearching for 'SubmitWithOptions' in test files:"
rg --type go 'SubmitWithOptions' --glob '*_test.go'

echo "\nSearching for DA mock setups in test files:"
rg --type go '(mock\.NewDA|mock\.DA|NewMockDA)' --glob '*_test.go' -A 10

Length of output: 1943


Script:

#!/bin/bash
# Description: Investigate DA usage in tests

echo "Searching for DA interface usage in test files:"
rg --type go 'DA\s+interface' --glob '*_test.go' -A 5

echo "\nSearching for imports of mock package in test files:"
rg --type go 'import\s+\([^)]*".*?/mocks"' --glob '*_test.go' -A 5

echo "\nSearching for DA setup in test files:"
rg --type go '(NewDA|da\s*:=|da\s*=)' --glob '*_test.go' -A 5

Length of output: 4283

Tools
GitHub Check: codecov/patch

[warning] 196-197: test/mocks/DA.go#L196-L197
Added lines #L196 - L197 were not covered by tests


[warning] 199-200: test/mocks/DA.go#L199-L200
Added lines #L199 - L200 were not covered by tests


[warning] 203-206: test/mocks/DA.go#L203-L206
Added lines #L203 - L206 were not covered by tests


[warning] 208-212: test/mocks/DA.go#L208-L212
Added lines #L208 - L212 were not covered by tests


[warning] 216-219: test/mocks/DA.go#L216-L219
Added lines #L216 - L219 were not covered by tests


[warning] 222-222: test/mocks/DA.go#L222
Added line #L222 was not covered by tests

@tzdybal tzdybal enabled auto-merge September 20, 2024 18:32
MSevey
MSevey previously approved these changes Sep 20, 2024
tuxcanfly
tuxcanfly previously approved these changes Sep 20, 2024
Copy link
Contributor

@tuxcanfly tuxcanfly left a comment

Choose a reason for hiding this comment

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

OK.

@tzdybal tzdybal added this pull request to the merge queue Sep 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 20, 2024
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

NOTE: PR titles should follow semantic commits:
https://www.conventionalcommits.org/en/v1.0.0/
-->

## Overview

Resolves #1821

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 

Ex: Closes #<issue number>
-->
Copy link
Contributor

@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: 1

Outside diff range and nitpick comments (3)
cmd/rollkit/docs/rollkit_start.md (1)

42-42: New DA submit options flag added correctly.

The new command-line flag --rollkit.da_submit_options string has been added appropriately to the list of options for the rollkit start command. The formatting is consistent with other options in the list.

However, the description "DA submit options" is quite brief. Consider expanding it to provide more context about what kind of options can be submitted and how they affect the DA (Data Availability) functionality.

Suggestion for a more descriptive explanation:

-      --rollkit.da_submit_options string                DA submit options
+      --rollkit.da_submit_options string                Specify additional options for submitting data to the DA layer (e.g., timeout, retry policy)
node/full.go (2)

248-251: LGTM, but consider adding validation for DASubmitOptions

The introduction of submitOpts allows for flexible configuration of DA submission options. However, it might be beneficial to add some validation for the content of nodeConfig.DASubmitOptions to ensure it contains valid JSON or meets expected format requirements.

Consider adding a validation step:

 var submitOpts []byte
 if nodeConfig.DASubmitOptions != "" {
+    // Validate DASubmitOptions (e.g., check if it's valid JSON)
+    if err := json.Unmarshal([]byte(nodeConfig.DASubmitOptions), &map[string]interface{}{}); err != nil {
+        return nil, fmt.Errorf("invalid DASubmitOptions: %w", err)
+    }
     submitOpts = []byte(nodeConfig.DASubmitOptions)
 }
Tools
GitHub Check: codecov/patch

[warning] 250-250: node/full.go#L250
Added line #L250 was not covered by tests


248-253: Overall changes look good. Consider adding test coverage.

The modifications to initDALC successfully introduce the ability to configure DA submission options, aligning with the PR objectives. The implementation is backwards compatible and localized.

Consider adding test coverage for the new submitOpts functionality in initDALC. This could include tests for:

  1. Empty DASubmitOptions
  2. Valid DASubmitOptions
  3. Invalid DASubmitOptions (if validation is added as suggested earlier)
Tools
GitHub Check: codecov/patch

[warning] 250-250: node/full.go#L250
Added line #L250 was not covered by tests

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 795cba2 and 5a7016e.

Files selected for processing (9)
  • block/manager_test.go (4 hunks)
  • cmd/rollkit/docs/rollkit_start.md (1 hunks)
  • config/config.go (4 hunks)
  • da/da.go (6 hunks)
  • da/da_test.go (10 hunks)
  • node/full.go (1 hunks)
  • node/full_node_integration_test.go (1 hunks)
  • node/full_node_test.go (1 hunks)
  • node/helpers_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (3)
  • block/manager_test.go
  • da/da.go
  • da/da_test.go
Additional context used
GitHub Check: codecov/patch
node/full.go

[warning] 250-250: node/full.go#L250
Added line #L250 was not covered by tests

Additional comments not posted (8)
config/config.go (5)

31-32: LGTM: New flag constant for DA submit options.

The addition of FlagDASubmitOptions is consistent with the existing flag naming convention and clearly indicates its purpose for data availability submit options.


66-66: LGTM: New field for DA submit options in NodeConfig.

The addition of DASubmitOptions field to the NodeConfig struct is appropriate. The string type and mapstructure tag are correctly implemented, ensuring proper configuration mapping.


137-137: LGTM: GetViperConfig updated for DA submit options.

The GetViperConfig method has been correctly updated to retrieve the DASubmitOptions value from Viper using the newly defined flag constant. This ensures that the new configuration option is properly loaded.


166-166: LGTM: AddFlags function updated for DA submit options.

The AddFlags function has been correctly updated to include the new DASubmitOptions flag. The implementation is consistent with other flags, using the constant and default value appropriately. This allows the new option to be set via command-line arguments.


31-32: Summary: DA submit options successfully integrated into configuration.

The changes in this file successfully integrate the new Data Availability (DA) submit options into the Rollkit node configuration. The additions include:

  1. A new flag constant FlagDASubmitOptions
  2. A corresponding field DASubmitOptions in the NodeConfig struct
  3. Updates to the GetViperConfig method to retrieve the new option
  4. An addition to the AddFlags function to allow setting the option via command-line

These changes are well-implemented, following existing patterns and conventions in the codebase. They enhance the configurability of the DA submission process, aligning with the PR objectives.

Also applies to: 66-66, 137-137, 166-166

node/full.go (1)

253-253: LGTM. Verify go-da dependency update.

The modification to include submitOpts in the NewDAClient function call is correct and aligns with the changes in the go-da library.

Let's verify that the go-da dependency has been updated to v0.6.1 as mentioned in the PR objectives:

Verification successful

Dependency go-da Updated to v0.6.1

The go-da dependency has been successfully updated to v0.6.1 as specified in the PR objectives.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify go-da dependency version
# Expected result: Should show v0.6.1

grep 'github.com/rollkit/go-da' go.mod

Length of output: 71

node/full_node_test.go (1)

205-205: LGTM. Consider adding a comment for the new parameter.

The addition of the extra nil parameter aligns with the PR objective of updating the go-da dependency. However, to improve code clarity:

  1. Consider adding a comment explaining the purpose of this new parameter.
  2. Verify that all other occurrences of NewDAClient in the codebase have been updated accordingly.

To ensure all NewDAClient calls have been updated, run the following script:

Verification successful

All NewDAClient calls have been updated with the new parameter.

No further action is needed.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining calls to NewDAClient with 5 arguments

# Test: Search for NewDAClient calls with 5 arguments. Expect: No results.
rg --type go 'NewDAClient\([^)]+,[^)]+,[^)]+,[^)]+,[^)]+\)'

Length of output: 706

node/full_node_integration_test.go (1)

682-682: LGTM. Verify the purpose of the new parameter.

The addition of the nil parameter to da.NewDAClient aligns with the updated dependency. This change adapts the code to the new API.

To ensure this change is consistent across the codebase, run the following script:

Verification successful

Verified the usage of the new nil parameter across the codebase. All existing instances pass nil or appropriate values, ensuring consistency with the updated NewDAClient constructor.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for consistent usage of the new DAClient constructor

# Test: Search for all NewDAClient calls
rg --type go 'NewDAClient\(' -A 1

Length of output: 2246

Copy link
Contributor

@tuxcanfly tuxcanfly left a comment

Choose a reason for hiding this comment

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

OK.

@tzdybal tzdybal added this pull request to the merge queue Sep 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 23, 2024
@Manav-Aggarwal Manav-Aggarwal added this pull request to the merge queue Sep 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 23, 2024
@tzdybal tzdybal added this pull request to the merge queue Sep 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 23, 2024
@tzdybal tzdybal added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit de518f4 Sep 23, 2024
@tzdybal tzdybal deleted the tzdybal/update_go_da branch September 23, 2024 16:44
This was referenced Mar 31, 2025
@tac0turtle tac0turtle removed this from Evolve Apr 24, 2025
This was referenced Jun 19, 2025
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.

4 participants