-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/state sync #10
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
base: main
Are you sure you want to change the base?
Feat/state sync #10
Conversation
Signed-off-by: Nikhil Sharma <[email protected]>
…ommitted and empty the cursor map on each write request Signed-off-by: Nikhil Sharma <[email protected]>
…, Balance and CodeHash in Account proof response Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
…rageResult in get proof Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
…tore Signed-off-by: Nikhil Sharma <[email protected]>
…ng-up, for processing blocks during fast-sync Signed-off-by: Nikhil Sharma <[email protected]>
…required Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
WalkthroughThis update introduces significant enhancements and refactoring across the codebase to support distinct database and state socket paths, improve modularity, and enable new state query capabilities. The application now differentiates between database and state routers, each with its own Unix socket, and adds robust Ethereum-compatible state query handling. The EVM client is extended to integrate with a Cosmos SDK RPC client, supporting syncing status queries and improved state management. Docker and testnet scripts are updated to accommodate new services, ports, and configuration options. Debug prints and unused code are removed, and several constants and global variables are reorganized for clarity and encapsulation. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant DBRouter
participant StateRouter
participant EVMClient
participant CosmosRPC
User->>App: Start Application
App->>DBRouter: Start DB Router (dbSocketPath)
App->>StateRouter: Start State Router (stateSocketPath)
App->>EVMClient: Set BaseApp reference
App->>EVMClient: Set Cosmos RPC Client (cometBFTRPCAddress)
User->>StateRouter: Connect for state query
StateRouter->>EVMClient: ethHandleStateConnection
EVMClient->>CosmosRPC: Query State Root / Proof
CosmosRPC-->>EVMClient: Return state data
EVMClient-->>StateRouter: Return query result
StateRouter-->>User: Send response
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (20)
💤 Files with no reviewable changes (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
748ed2c to
0e1d434
Compare
…fied ips Signed-off-by: Nikhil Sharma <[email protected]>
0e1d434 to
f241340
Compare
Signed-off-by: Nikhil Sharma <[email protected]>
… network Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
5f1bc49 to
3b0e574
Compare
…ling ProcessProposal Signed-off-by: Nikhil Sharma <[email protected]>
0a76632 to
7947c73
Compare
…545 on the host Signed-off-by: Nikhil Sharma <[email protected]>
Signed-off-by: Nikhil Sharma <[email protected]>
Changes for fast-sync
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Chores