Skip to main content

Module data_source

Module data_source 

Source
Expand description

This file contains the DataSource trait. This trait allows the [RequestResponseProtocol] to calculate/derive a response for a specific request. In the confirmation layer the implementer would be something like a [FeeMerkleTree] for fee catchup

Structs§

DataSource

Enums§

Storage
Query Service Storage types that can be used for request-response data source

Functions§

legacy_leaf_chain_from_memory 🔒
Build a legacy-protocol 3-chain leaf chain decided at height from in-memory undecided leaves.
retain_v1_reward_accounts
Get a partial snapshot of the given reward state, which contains only the specified accounts.
retain_v2_reward_accounts
Get a partial snapshot of the given reward state, which contains only the specified accounts.