Expand description
Receipt root computation in a background task.
This module provides a streaming receipt root builder that computes the receipt trie root
in a background thread. Receipts are sent via a channel with their index, and for each
receipt received, the builder incrementally flushes leaves to the underlying
OrderedTrieRootEncodedBuilder when possible. When the channel closes, the task returns the
computed root.
Structsยง
- Indexed
Receipt - Receipt with index, ready to be sent to the background task for encoding and trie building.
- Receipt
Root Task Handle - Handle for running the receipt root computation in a background task.