Commits
Click on a commit to change the comparison rangefeat(trie): add generic proof target generation methods to SparseStateTrie
Add generate_account_proof_targets and generate_storage_proof_targets methods
to the generic SparseStateTrie<A, S> impl block. These methods:
- Return full proofs (min_len=0) for all keys as a safe fallback
- Exclude keys that are already fully revealed as leaves
- Work with any SparseTrieInterface implementation
The existing optimized methods that calculate actual min_len depths based on
revealed nodes are renamed to *_optimized and remain on the SerialSparseTrie
specialization for use when maximum efficiency is needed.
This allows the engine tree's sparse trie task to generate proof targets
regardless of whether it's using SerialSparseTrie or ParallelSparseTrie. fix(engine): add const to set_next_sequence for clippy feat(trie): implement generate_proof_targets on ParallelSparseTrie feat(engine): add proof worker handle infrastructure to SparseTrieTask
Add infrastructure for SparseTrieTask to dispatch proof requests directly
to proof workers:
- Add proof_worker_handle field for dispatching proof requests
- Add proof_result_rx for receiving proof results
- Add with_proof_worker_handle() builder method
This prepares for the sparse-trie-as-cache optimization where the sparse
trie generates proof targets based on revealed nodes.