-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[light-client] Fix light client rpc (#19028)
## Description Modernise the RPC used in the light client: - Use GraphQL to get the end-of-epoch checkpoint. - Use the supported Rust SDK to get objects and other info. - Use a generic object store, by default provided by Mysten, for the full checkpoint data. - Add a cache to package loader since we observed the same package downloaded multiple times. ## Test plan Existing unit tests, and manual CLI invocations.
- Loading branch information
Showing
6 changed files
with
217 additions
and
114 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
checkpoints_dir/* |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
full_node_url: "http://ord-mnt-rpcbig-06.mainnet.sui.io:9000" | ||
full_node_url: "https://fullnode.mainnet.sui.io:443" | ||
checkpoint_summary_dir: "checkpoints_dir" | ||
genesis_filename: "genesis.blob" | ||
genesis_filename: "genesis.blob" | ||
object_store_url: "https://checkpoints.mainnet.sui.io" | ||
graphql_url: "https://sui-mainnet.mystenlabs.com/graphql" |
Oops, something went wrong.