Fix MST persistence & add an appview endpoint for no reason

This commit is contained in:
lewis
2025-12-07 22:04:26 +02:00
parent e2cc51f0b1
commit 16549ddcf7
8 changed files with 344 additions and 33 deletions
+2 -2
View File
@@ -206,10 +206,10 @@ pub async fn create_account(
}
let mst = Mst::new(Arc::new(state.block_store.clone()));
let mst_root = match mst.root().await {
let mst_root = match mst.persist().await {
Ok(c) => c,
Err(e) => {
error!("Error creating MST root: {:?}", e);
error!("Error persisting MST: {:?}", e);
return (
StatusCode::INTERNAL_SERVER_ERROR,
Json(json!({"error": "InternalError"})),