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

refactor(katana): move forked blockchain creation logic to core #2545

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

kariy
Copy link
Member

@kariy kariy commented Oct 16, 2024

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced forking functionality with new configuration options for RPC URL and block specification.
    • Added a new ForkingConfig structure for enhanced configuration capabilities.
  • Bug Fixes

    • Improved logging configuration for better traceability during forking operations.
  • Refactor

    • Streamlined blockchain initialization logic for clarity and efficiency.
  • Documentation

    • Updated documentation to reflect new methods and configuration structures related to forking.

Copy link

coderabbitai bot commented Oct 16, 2024

Walkthrough

Ohayo! The recent changes introduce significant modifications to the NodeArgs struct and related configurations in the bin/katana/src/cli/node.rs file, adding forking functionality with new fields for fork_rpc_url and fork_block. The starknet_config method has been updated to utilize a new forking_config method. Other files, such as utils.rs and config.rs, have also been updated to accommodate these changes, including new parsing functions and the introduction of a ForkingConfig struct. The logging configuration and various method signatures have been refined across multiple files.

Changes

File Path Change Summary
bin/katana/src/cli/node.rs Updated NodeArgs struct: renamed rpc_url to fork_rpc_url, added fork_block, removed fork_block_number. Updated starknet_config method.
bin/katana/src/utils.rs Simplified parse_genesis return type, added parse_block_hash_or_number function.
crates/katana/core/Cargo.toml Added new dependency num-traits.
crates/katana/core/src/backend/config.rs Removed fork_rpc_url and fork_block_number from StarknetConfig.
crates/katana/core/src/backend/storage.rs Renamed new_with_genesis to new_with_chain, added new_from_forked method, refactored genesis handling.
crates/katana/node/Cargo.toml Removed num-traits dependency.
crates/katana/node/src/config/fork.rs Introduced ForkingConfig struct with fields url and block.
crates/katana/node/src/config/mod.rs Added fork module and forking field to Config struct.
crates/katana/node/src/lib.rs Refined blockchain initialization logic, updated method calls to reflect new configurations.
crates/katana/primitives/src/block.rs Implemented Display trait for BlockHashOrNumber, added From trait implementation.
crates/katana/storage/provider/src/providers/fork/backend.rs Updated logging level, added new_inner method, refined request handling logic.

Possibly related PRs

Suggested reviewers

  • neotheprogramist
  • glihm

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

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

🧹 Outside diff range and nitpick comments (10)
crates/katana/node/src/config/fork.rs (2)

5-11: Ohayo! The ForkingConfig struct looks solid, sensei!

The struct is well-designed with descriptive field names and appropriate types. The use of Option<BlockHashOrNumber> for the block field is a smart choice, allowing flexibility in block specification.

One small suggestion for future enhancement:
Consider adding a Default implementation or a constructor method to create a ForkingConfig with sensible defaults. This could make it easier for users to create instances with minimal configuration.

Here's an example of how you could add a Default implementation:

impl Default for ForkingConfig {
    fn default() -> Self {
        Self {
            url: Url::parse("http://localhost:8545").expect("Invalid default URL"),
            block: None,
        }
    }
}

This is just a suggestion for future improvement, not a critical change. What do you think, sensei?


4-10: Ohayo! The documentation is looking good, sensei!

The doc comments are clear, concise, and informative. They provide a good overview of the struct's purpose and explain each field's role effectively.

A small suggestion to make it even better:
Consider adding an example usage of the ForkingConfig struct in the documentation. This can help users understand how to create and use the struct in their code.

Here's an example of how you could enhance the documentation:

/// Node forking configurations.
///
/// # Example
///
/// ```
/// use katana_node::config::fork::ForkingConfig;
/// use starknet::providers::Url;
///
/// let config = ForkingConfig {
///     url: Url::parse("https://example.com/rpc").unwrap(),
///     block: Some(BlockHashOrNumber::Number(1000)),
/// };
/// ```
#[derive(Debug, Clone)]
pub struct ForkingConfig {
    // ... (existing fields)
}

What do you think about adding this example, sensei?

crates/katana/node/src/config/mod.rs (1)

27-29: Ohayo! New field looks great, sensei! Just a tiny suggestion.

The addition of the forking field to the Config struct is well-placed and correctly typed as Option<ForkingConfig>. This aligns perfectly with the PR objective of integrating forking functionality.

Consider adding a brief doc comment for the forking field, similar to the other fields in the struct. This would enhance the documentation and make it easier for other developers to understand the purpose of this field. Here's a suggested addition:

    /// Database options.
    pub db: DbConfig,

+   /// Forking options.
    pub forking: Option<ForkingConfig>,

    /// Rpc options.
    pub rpc: RpcConfig,
bin/katana/src/utils.rs (1)

27-35: Ohayo! Excellent new function, sensei!

The parse_block_hash_or_number function is a great addition. It elegantly handles parsing of both block hashes and numbers, returning a BlockHashOrNumber enum. The logic is sound and the error handling is good.

A small suggestion to improve consistency:

Consider adding a context message to the BlockHash parsing as well:

- Ok(BlockHashOrNumber::Hash(BlockHash::from_hex(value)?))
+ Ok(BlockHashOrNumber::Hash(BlockHash::from_hex(value).context("could not parse block hash")?))

This would make the error handling consistent between both branches.

crates/katana/primitives/src/block.rs (1)

199-206: Ohayo again, sensei! This implementation is also sugoi, but let's make it even better!

The From trait implementation for converting BlockHashOrNumber to BlockIdOrTag is well-structured and correctly handles both variants. It provides a seamless conversion between these types.

For consistency with the Display implementation, consider using the same variable names in the pattern matching:

 impl From<BlockHashOrNumber> for BlockIdOrTag {
     fn from(value: BlockHashOrNumber) -> Self {
         match value {
-            BlockHashOrNumber::Hash(hash) => BlockIdOrTag::Hash(hash),
-            BlockHashOrNumber::Num(number) => BlockIdOrTag::Number(number),
+            BlockHashOrNumber::Hash(hash) => BlockIdOrTag::Hash(hash),
+            BlockHashOrNumber::Num(num) => BlockIdOrTag::Number(num),
         }
     }
 }

This small change aligns the variable naming with the Display implementation, enhancing overall code consistency.

crates/katana/storage/provider/src/providers/fork/backend.rs (4)

155-155: Ensure consistent logging practices, sensei.

The use of trace! for the "Forking backend started." message might make it less noticeable during debugging. If this log is crucial, consider using info! to maintain consistency and visibility.

Apply this diff if you agree:

-trace!(target: LOG_TARGET, "Forking backend started.");
+info!(target: LOG_TARGET, "Forking backend started.");

Line range hint 129-132: Refactor for code duplication reduction, sensei.

The pattern used in handling different BackendRequest variants is similar across cases. Consider abstracting the common logic into a helper function to reduce code duplication and improve maintainability.

Here's how you might refactor it:

fn handle_request<T, F>(&mut self, payload: T, sender: OneshotSender<BackendResult<F>>, request_fn: impl Fn(Arc<P>, BlockId, T) -> F) 
where
    F: Future<Output = Result<U, StarknetProviderError>> + Send + 'static,
    U: Send + 'static,
{
    let provider = self.provider.clone();
    let block = self.block;
    let fut = Box::pin(async move {
        let res = request_fn(provider, block, payload)
            .await
            .map_err(BackendError::StarknetProvider);
        sender.send(res).expect("failed to send result");
    });
    self.pending_requests.push(fut);
}

Then, you can use this in your match arms to handle each request type.


Line range hint 302-313: Consider caching zero values carefully, sensei.

The logic for invalidating zero nonce and class hash values to force re-fetching from the provider might lead to unnecessary network requests if zero is a valid and common value. Evaluate whether zero is an expected value for nonce and class hashes in your context.

If zero is a valid value, consider implementing an explicit "not fetched" state or using Option<Nonce> to represent the absence of a value distinctly from zero.


Line range hint 341-355: Ohayo, sensei! Handle ContractNotFound and ClassHashNotFound errors uniformly.

In the handle_not_found_err function, you are mapping specific errors to None. Ensure that all relevant "not found" errors are covered, and consider logging the errors for better traceability.

Add any additional error variants that represent "not found" cases, and consider logging unexpected errors.

fn handle_not_found_err<T>(result: Result<T, BackendError>) -> Result<Option<T>, BackendError> {
    match result {
        Ok(value) => Ok(Some(value)),

        Err(BackendError::StarknetProvider(StarknetProviderError::StarknetError(
            StarknetError::ContractNotFound
            | StarknetError::ClassHashNotFound
            | StarknetError::BlockNotFound, // Add any other relevant errors
        ))) => Ok(None),

        Err(e) => {
            error!(target: LOG_TARGET, %e, "Unexpected error in handle_not_found_err.");
            Err(e)
        },
    }
}
crates/katana/core/src/backend/storage.rs (1)

123-129: Handle unexpected chain IDs gracefully.

While parsing the chain_id using parse_cairo_short_string, consider logging a warning when parsing fails. Currently, if the chain ID is not ASCII-encoded, it defaults to displaying in hexadecimal format. Explicitly informing users about the fallback can improve transparency.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between c00075e and e835a61.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (11)
  • bin/katana/src/cli/node.rs (8 hunks)
  • bin/katana/src/utils.rs (2 hunks)
  • crates/katana/core/Cargo.toml (1 hunks)
  • crates/katana/core/src/backend/config.rs (0 hunks)
  • crates/katana/core/src/backend/storage.rs (6 hunks)
  • crates/katana/node/Cargo.toml (0 hunks)
  • crates/katana/node/src/config/fork.rs (1 hunks)
  • crates/katana/node/src/config/mod.rs (2 hunks)
  • crates/katana/node/src/lib.rs (2 hunks)
  • crates/katana/primitives/src/block.rs (2 hunks)
  • crates/katana/storage/provider/src/providers/fork/backend.rs (2 hunks)
💤 Files with no reviewable changes (2)
  • crates/katana/core/src/backend/config.rs
  • crates/katana/node/Cargo.toml
🧰 Additional context used
🔇 Additional comments (25)
crates/katana/node/src/config/fork.rs (1)

1-2: Ohayo! These imports look spot-on, sensei!

The imports for BlockHashOrNumber and Url are well-chosen and directly relevant to the ForkingConfig struct being defined. Nice work on keeping it clean and focused!

crates/katana/node/src/config/mod.rs (2)

3-3: Ohayo! New module looks good, sensei!

The addition of the fork module aligns well with the PR objective of moving forked blockchain creation logic. This organization will help keep the forking-related code separate and maintainable.


9-9: Ohayo! Import looks spot-on, sensei!

The import of ForkingConfig from the new fork module is correctly placed and necessary for using the type in the Config struct. Good job on maintaining proper module organization!

bin/katana/src/utils.rs (2)

3-4: Ohayo! New imports look good, sensei!

The added imports for anyhow and katana_primitives::block are necessary for the changes made in this file. They support improved error handling and the new block parsing functionality.


21-21: Nice simplification, sensei!

The change to the parse_genesis function signature is a good simplification. It maintains the same functionality while adhering to Rust's conventions for error handling. Ohayo to cleaner code!

crates/katana/core/Cargo.toml (1)

24-24: Ohayo! New dependency looks good, sensei!

The addition of num-traits as a workspace-managed dependency is a solid choice. This library will provide useful numerical traits that can enhance our mathematical operations in the codebase. Nice work on keeping it consistent with our workspace structure!

crates/katana/primitives/src/block.rs (1)

18-25: Ohayo, sensei! This implementation looks sugoi!

The Display trait implementation for BlockHashOrNumber is well-crafted and follows Rust best practices. It provides a clear and consistent string representation for both variants of the enum.

crates/katana/node/src/lib.rs (3)

47-47: Ohayo sensei! The addition of the tracing::info import is appropriate.

The info! macro is used later in the code to log the start of the RPC server, so importing tracing::info is necessary.


184-186: Potential side effects from mutating config.chain

Ohayo sensei! In the build function, &mut config.chain is passed to Blockchain::new_from_forked, indicating that config.chain may be mutated within this function. Please verify if mutating config.chain is intentional and doesn't introduce unintended side effects elsewhere in the code.

To ensure that mutating config.chain doesn't affect other parts of the codebase, consider reviewing its usage after this point.


191-191: Ohayo sensei! Consistent initialization without forking configuration.

The blockchain is correctly initialized with InMemoryProvider when no forking configuration or database directory is provided. This ensures that the node can operate in a standalone mode.

bin/katana/src/cli/node.rs (5)

78-87: Ohayo sensei, forking functionality arguments are well-defined

The new command-line arguments for the forking functionality are correctly implemented with proper usage of clap attributes and validations. The aliases and value parsers are appropriately configured.


175-175: Ohayo sensei, conflict declarations are correctly specified

The conflicts_with_all attribute for genesis ensures mutual exclusivity with fork_rpc_url, seed, and total_accounts, which is logical and prevents configuration issues.


260-262: Ohayo sensei, logging configuration is properly adjusted

The DEFAULT_LOG_FILTER now includes forking::backend=trace, which is appropriate for debugging the new forking functionality. The string continuation is correctly used.


286-290: Ohayo sensei, inclusion of forking config in node configuration

The forking configuration is correctly obtained from self.forking_config()? and included in the overall Config struct. This integration ensures that the forking settings are passed throughout the node components.


359-365: Ohayo sensei, forking_config method is correctly implemented

The forking_config method properly constructs the ForkingConfig when fork_rpc_url is provided. It handles the optional fork_block and returns None when forking is not enabled.

crates/katana/storage/provider/src/providers/fork/backend.rs (1)

Line range hint 507-518: Ensure tests are not ignored unintentionally, sensei.

In the #[ignore] attribute on the test fetch_from_fork_will_err_if_backend_thread_not_running, verify if it's intentionally ignored or if it should be re-enabled.

You can run the following script to list all ignored tests:

#!/bin/bash
# Description: List all ignored tests in the codebase.

rg --type rust '#\[ignore\]' --context 2

This will help you identify and review any tests that are currently being ignored.

crates/katana/core/src/backend/storage.rs (9)

1-2: Ohayo sensei! Addition of Arc import is appropriate.

The inclusion of use std::sync::Arc; is necessary for the shared ownership of the provider in the ForkedProvider. This ensures thread-safe reference counting when dealing with asynchronous operations.


Line range hint 84-106: Consistency achieved with new_with_chain method refactoring.

Renaming new_with_genesis to new_with_chain enhances clarity, reflecting that the method now handles chain specifications beyond just the genesis block. The updated logic correctly checks for the genesis block initialization and appropriately initializes it if absent.


113-113: Ohayo! Efficient reuse of new_with_chain in new_with_db method.

By calling Self::new_with_chain(DbProvider::new(db), chain), the code reduces redundancy and ensures consistency in blockchain initialization across different methods.


117-176: Great addition of new_from_forked method for forking capability.

Introducing the asynchronous new_from_forked method enhances the blockchain's flexibility by allowing initialization from a forked network. This is a valuable feature for testing and development purposes.


147-149: Ohayo sensei! Properly disallowing forking from pending blocks.

The check to prevent forking from a pending block aligns with best practices, ensuring that the blockchain state is consistent and reliable.


172-172: Ohayo! Correct usage of Arc with ForkedProvider.

Wrapping the provider with Arc::new in ForkedProvider::new(Arc::new(provider), block_id)?; ensures thread-safe shared ownership, which is essential for asynchronous operations.


216-216: Ohayo sensei! Updating trait imports in tests is good practice.

Ensuring that all necessary traits are imported in the test module maintains test reliability and clarity.


229-229: Ensure tests reflect the changes in initialization methods.

In the test blockchain_from_genesis_states, the call to Blockchain::new_with_chain correctly reflects the refactored method name. Verify that all test cases are updated similarly to prevent failures during testing.


Line range hint 183-189: Verify all references to new_with_block_and_state are updated.

The method new_with_block_and_state has been renamed to new_with_genesis_block_and_state for clarity. Please ensure that all references to the old method name are updated throughout the codebase to prevent any linkage or compilation errors.

Run the following script to confirm no lingering references:

@@ -488,8 +496,7 @@ mod test {

assert!(config.dev.fee);
assert!(config.dev.account_validation);
assert_eq!(config.starknet.fork_rpc_url, None);
assert_eq!(config.starknet.fork_block_number, None);
assert!(config.forking.is_none());
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Ohayo sensei, consider adding tests for forking configuration

Currently, the tests verify that config.forking is None by default. It would be beneficial to add test cases that validate the forking configuration when fork_rpc_url and fork_block are provided. This ensures the new forking functionality is properly tested and helps prevent regressions.

@@ -22,7 +22,7 @@ use katana_primitives::Felt;
use parking_lot::Mutex;
use starknet::core::types::{BlockId, ContractClass as RpcContractClass, StarknetError};
use starknet::providers::{Provider, ProviderError as StarknetProviderError};
use tracing::{error, info, trace};
use tracing::{error, trace};
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Ohayo, sensei! Consider adjusting the logging level for better clarity.

The logging level for the message indicating the start of the forking backend has been changed from info to trace. This might make it less visible in standard logs. If this message is important for users to know when the backend starts, it might be better to keep it at the info level.

Apply this diff to revert the logging level back to info:

-use tracing::{error, trace};
+use tracing::{error, info};

...

-trace!(target: LOG_TARGET, "Forking backend started.");
+info!(target: LOG_TARGET, "Forking backend started.");

Committable suggestion was skipped due to low confidence.

@@ -152,7 +152,7 @@
})
.map_err(BackendError::BackendThreadInit)?;

info!(target: LOG_TARGET, "Forking backend started.");
trace!(target: LOG_TARGET, "Forking backend started.");
Copy link

Choose a reason for hiding this comment

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

💡 Codebase verification

Logging Level Change Impact

Ohayo, sensei! Changing the logging level from info! to trace! in crates/katana/storage/provider/src/providers/fork/backend.rs may reduce the visibility of this log message in production environments. Please ensure this change aligns with our overall logging strategy to maintain essential log visibility during standard operations.

🔗 Analysis chain

Ohayo, sensei! Verify the impact of changing the logging level.

Changing the logging level from info! to trace! may affect the visibility of this log message in production environments. Ensure that this change aligns with the desired verbosity levels across different deployment configurations.

You can run the following script to check where trace! logs are output:


Ohayo, sensei! It looks like there was an issue with the previous script. Let's try running a corrected version to verify the logging levels:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify logging levels in the codebase.

# Find all instances of `trace!` and `info!` in the codebase.
rg --type rust 'trace!\(|info!\('

Length of output: 2493


Script:

#!/bin/bash
# Description: Verify logging levels in the codebase.

# Find all instances of `trace!` and `info!` in Rust files.
rg --type rust 'trace!\(|info!\('

Length of output: 23789

Comment on lines +165 to +170
let status = match block.status {
BlockStatus::AcceptedOnL1 => FinalityStatus::AcceptedOnL1,
BlockStatus::AcceptedOnL2 => FinalityStatus::AcceptedOnL2,
// we already checked for pending block earlier. so this should never happen.
_ => bail!("qed; block status shouldn't be pending"),
};
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Consider handling all possible block statuses explicitly.

In the match statement for block.status, only AcceptedOnL1 and AcceptedOnL2 are handled, with other statuses resulting in an error. To enhance robustness, consider handling other possible statuses like Rejected or future statuses explicitly, or provide a more descriptive error message.

Apply this diff to handle additional statuses:

 match block.status {
     BlockStatus::AcceptedOnL1 => FinalityStatus::AcceptedOnL1,
     BlockStatus::AcceptedOnL2 => FinalityStatus::AcceptedOnL2,
+    BlockStatus::Rejected => bail!("Cannot fork from a rejected block"),
     // we already checked for pending block earlier. so this should never happen.
     _ => bail!("Unexpected block status: {:?}", block.status),
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
let status = match block.status {
BlockStatus::AcceptedOnL1 => FinalityStatus::AcceptedOnL1,
BlockStatus::AcceptedOnL2 => FinalityStatus::AcceptedOnL2,
// we already checked for pending block earlier. so this should never happen.
_ => bail!("qed; block status shouldn't be pending"),
};
let status = match block.status {
BlockStatus::AcceptedOnL1 => FinalityStatus::AcceptedOnL1,
BlockStatus::AcceptedOnL2 => FinalityStatus::AcceptedOnL2,
BlockStatus::Rejected => bail!("Cannot fork from a rejected block"),
// we already checked for pending block earlier. so this should never happen.
_ => bail!("Unexpected block status: {:?}", block.status),
};

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 20.77922% with 61 lines in your changes missing coverage. Please review.

Project coverage is 69.42%. Comparing base (c00075e) to head (e835a61).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/katana/core/src/backend/storage.rs 11.36% 39 Missing ⚠️
crates/katana/primitives/src/block.rs 0.00% 10 Missing ⚠️
bin/katana/src/utils.rs 14.28% 6 Missing ⚠️
bin/katana/src/cli/node.rs 63.63% 4 Missing ⚠️
crates/katana/node/src/lib.rs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2545      +/-   ##
==========================================
- Coverage   69.54%   69.42%   -0.13%     
==========================================
  Files         388      388              
  Lines       49907    49881      -26     
==========================================
- Hits        34706    34628      -78     
- Misses      15201    15253      +52     

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

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.

1 participant