Kari server#45
Merged
Merged
Conversation
- Commented out Axum and Tower HTTP dependencies in Cargo.toml. - Replaced Axum-based HTTP server with jsonrpc-http-server for handling RPC requests. - Removed Axum-specific routing and middleware configurations. - Simplified the RPC server startup process and integrated health check endpoints. - Updated the handling of pending transactions using a RwLock for thread-safe access. - Enhanced transaction processing with dynamic gas fee calculation and improved error handling. - Removed unused blockchain_display module and related functions. - Streamlined the simulation module by consolidating transaction handling logic. - Updated chain ID to an empty string for default initialization.
… node - Updated main.rs to rename the "network" command to "env" and added handling for environment commands. - Added comprehensive user guides in English and Thai for running Kanari blockchain nodes, covering installation, configuration, and troubleshooting. - Removed outdated Running-Node-Guide.md in favor of the new guides. - Refactored network configuration functions in mod.rs to streamline the setup process and improve code maintainability.
✅ Deploy Preview for movekari canceled.
|
✅ Deploy Preview for whitepaperkari canceled.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates and improvements to the Kanari SDK and its CLI tools, focusing on renaming and restructuring the network-related CLI commands, improving configuration management, and enhancing usability. The changes include renaming "network" commands to "environment" commands, dynamic handling of RPC endpoints, and centralizing configuration initialization. Below is a summary of the most important changes:
CLI Command Restructuring
network_climodule toenv_cliand updated all related functions and commands from "network" to "environment" (e.g.,handle_network_commandtohandle_env_command,list_networkstolist_envs, etc.). This includes updating user-facing messages and examples. [1] [2] [3] [4] [5] [6] [7]Dynamic RPC Endpoint Handling
get_rpc_endpointto dynamically fetch the RPC endpoint from the active environment in the configuration. This replaces hardcoded RPC URLs in thekeytool_climodule and improves flexibility. [1] [2] [3] [4] [5]Configuration Management Improvements
init_default_configfunction, which simplifies the creation ofkanari.yaml. This replaces redundant code inserver_cli/init_server.rs. [1] [2]ensure_network_configfunction inserver_cli/start_server.rs, improving error handling and backward compatibility with legacy configurations. [1] [2] [3]Dependency Updates
reqwestdependency inCargo.tomlfrom version0.12.15to0.12.18.Version Increment
Cargo.tomlfrom0.1.2to0.1.3.Summary
Summary about this PR