Skip to content

Refactor storage access#87

Merged
jonasmartin merged 2 commits intodevfrom
storage-update
Apr 1, 2026
Merged

Refactor storage access#87
jonasmartin merged 2 commits intodevfrom
storage-update

Conversation

@TomasSzeSirk
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/musig2/musig.rs
Comment on lines -801 to -802
let transaction_id = self.begin_transaction();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this transaction not longer needed ?

Comment thread src/musig2/musig.rs Outdated
let current_index = self
.store
.get::<String, u32>(key_index_used_by_me.clone())?;
.get::<String, u32>(key_index_used_by_me.clone(), None)?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you are inside a tx, the db_tx_id should be used

Comment thread src/musig2/musig.rs
Comment on lines -862 to -863
self.commit_transaction(transaction_id)?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Copy Markdown
Contributor

@jonasmartin jonasmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jonasmartin jonasmartin merged commit 60244c3 into dev Apr 1, 2026
1 check failed
@jonasmartin jonasmartin deleted the storage-update branch April 1, 2026 20:37
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.

2 participants