Skip to content

Commit c0b4050

Browse files
committed
feat: add /sudo/storage endpoint for direct storage R/W with snapshot rollback
1 parent 5864c70 commit c0b4050

File tree

4 files changed

+418
-0
lines changed

4 files changed

+418
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bins/validator-node/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,9 @@ async fn main() -> Result<()> {
742742
chain_state.clone(),
743743
bans.clone(),
744744
rpc_p2p_tx.clone(),
745+
)
746+
.with_storage(
747+
Arc::clone(&storage) as Arc<dyn platform_distributed_storage::DistributedStore>
745748
);
746749

747750
// Configure WASM route handler if executor is available

crates/rpc-server/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ description = "HTTP RPC server for Mini-Chain validators"
88
platform-core = { path = "../core" }
99
platform-challenge-sdk = { path = "../challenge-sdk" }
1010
platform-subnet-manager = { path = "../subnet-manager" }
11+
platform-distributed-storage = { path = "../distributed-storage" }
1112

1213
# HTTP Server
1314
axum = { version = "0.7", features = ["json", "tokio"] }

0 commit comments

Comments
 (0)