Module receipt_root_task

Module receipt_root_task 

Source
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ยง

IndexedReceipt
Receipt with index, ready to be sent to the background task for encoding and trie building.
ReceiptRootTaskHandle
Handle for running the receipt root computation in a background task.