Skip to content

Simplify OpProofsStore trait #634

@emhane

Description

@emhane

Describe the feature

Many trait methods don't need to be async and should be sync, for example

/// Store a batch of account trie branches. Used for saving existing state. For live state
/// capture, use [store_trie_updates](OpProofsStore::store_trie_updates).
fn store_account_branches(
&self,
account_nodes: Vec<(Nibbles, Option<BranchNodeCompact>)>,
) -> impl Future<Output = OpProofsStorageResult<()>> + Send;

Additional context

No response

Metadata

Metadata

Labels

A-trieArea: Merkle Patricia TrieK-debtKind: debtM-good-first-issueMeta: good issue for first time contributorsW-historical-proofsWorkstream: historical-proofs

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions