Skip to content

fix: return errors from RocksDB subtree helpers#2070

Open
Mr-kay-cloud2 wants to merge 1 commit into
0xMiden:nextfrom
Mr-kay-cloud2:fix/rocksdb-storage-helper-errors
Open

fix: return errors from RocksDB subtree helpers#2070
Mr-kay-cloud2 wants to merge 1 commit into
0xMiden:nextfrom
Mr-kay-cloud2:fix/rocksdb-storage-helper-errors

Conversation

@Mr-kay-cloud2
Copy link
Copy Markdown

This PR addresses issue #1730 by replacing panic/expect usage in RocksDB subtree helpers with proper Result-based error handling.

Changes:

  • Updated subtree_db_key to return Result instead of panicking on unsupported depths
  • Updated subtree_cf to return Result instead of using .expect()
  • Propagated errors to all callers using ?

This improves reliability by preventing node crashes when encountering unexpected storage conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant