[sui-node] RunWithRange epoch/checkpoint delimiter
Description
This PR introduces the ability to stop sui-node at arbitrary checkpoint or epoch. This use case helps improve some validation workflows but could also be useful in some disaster recovery scenarios. When RunWIthRange is utilized, transaction orchestrator is disabled.
Test Plan
I tested locally. TODO! add more testing here
output from stopping at epoch_0
sui-node --config-path /opt/sui/config/sui-node.yaml --run-with-range-epoch 0
2023-12-22T21:55:11.539545Z INFO sui_node: Sui JSON-RPC server listening on 0.0.0.0:9000 local_addr=0.0.0.0:9000
2023-12-22T21:55:11.539833Z INFO sui_node: SuiNode started!
2023-12-22T21:55:11.539903Z INFO narwhal_network::connectivity: Spawning future narwhal/network/src/connectivity.rs:ConnectionMonitor
2023-12-22T21:55:11.539974Z INFO sui_node: Sui chain identifier: 4c78adac
2023-12-22T21:55:11.540146Z INFO sui_core::checkpoints::checkpoint_executor: RunWithRange condition satisfied at epoch 0
2023-12-22T21:55:11.540218Z INFO sui_node::admin: starting admin server filter=info address=127.0.0.1:1337
2023-12-22T21:55:11.541417Z INFO narwhal_network::connectivity: Future narwhal/network/src/connectivity.rs:ConnectionMonitor completed
If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)
- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration
Release notes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| sui-core | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 11, 2024 7:06pm |
| sui-typescript-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 11, 2024 7:06pm |
4 Ignored Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| explorer | ⬜️ Ignored (Inspect) | Visit Preview | Jan 11, 2024 7:06pm | |
| multisig-toolkit | ⬜️ Ignored (Inspect) | Visit Preview | Jan 11, 2024 7:06pm | |
| mysten-ui | ⬜️ Ignored (Inspect) | Visit Preview | Jan 11, 2024 7:06pm | |
| sui-kiosk | ⬜️ Ignored (Inspect) | Visit Preview | Jan 11, 2024 7:06pm |