| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.MiniProtocol.BlockFetch.ClientInterface
Description
Initialization of the BlockFetchConsensusInterface
Synopsis
- data ChainDbView (m ∷ Type → Type) blk = ChainDbView {
- getCurrentChain ∷ STM m (AnchoredFragment (Header blk))
- getCurrentChainWithTime ∷ STM m (AnchoredFragment (HeaderWithTime blk))
- getIsFetched ∷ STM m (Point blk → Bool)
- getMaxSlotNo ∷ STM m MaxSlotNo
- addBlockAsync ∷ InvalidBlockPunishment m → blk → m (AddBlockPromise m blk)
- getChainSelStarvation ∷ STM m ChainSelStarvation
- getPerasWeightSnapshot ∷ STM m (WithFingerprint (PerasWeightSnapshot blk))
- defaultChainDbView ∷ ∀ (m ∷ Type → Type) blk. ChainDB m blk → ChainDbView m blk
- mkBlockFetchConsensusInterface ∷ ∀ (m ∷ Type → Type) peer blk. (IOLike m, BlockSupportsDiffusionPipelining blk, Ord peer, LedgerSupportsProtocol blk, ConfigSupportsNode blk) ⇒ Tracer m (TraceEventDbf peer) → BlockConfig blk → ChainDbView m blk → ChainSyncClientHandleCollection peer m blk → (Header blk → SizeInBytes) → STM m FetchMode → DiffusionPipeliningSupport → BlockFetchConsensusInterface peer (HeaderWithTime blk) blk m
- readFetchModeDefault ∷ ∀ (m ∷ Type → Type) blk. (MonadSTM m, HasHeader blk) ⇒ ConsensusMode → BlockchainTime m → STM m (AnchoredFragment blk) → STM m UseBootstrapPeers → STM m LedgerStateJudgement → STM m FetchMode
Documentation
data ChainDbView (m ∷ Type → Type) blk Source #
Abstract over the ChainDB
Constructors
| ChainDbView | |
Fields
| |
defaultChainDbView ∷ ∀ (m ∷ Type → Type) blk. ChainDB m blk → ChainDbView m blk Source #
mkBlockFetchConsensusInterface Source #
Arguments
| ∷ ∀ (m ∷ Type → Type) peer blk. (IOLike m, BlockSupportsDiffusionPipelining blk, Ord peer, LedgerSupportsProtocol blk, ConfigSupportsNode blk) | |
| ⇒ Tracer m (TraceEventDbf peer) | |
| → BlockConfig blk | |
| → ChainDbView m blk | |
| → ChainSyncClientHandleCollection peer m blk | |
| → (Header blk → SizeInBytes) | |
| → STM m FetchMode | See |
| → DiffusionPipeliningSupport | |
| → BlockFetchConsensusInterface peer (HeaderWithTime blk) blk m |
readFetchModeDefault ∷ ∀ (m ∷ Type → Type) blk. (MonadSTM m, HasHeader blk) ⇒ ConsensusMode → BlockchainTime m → STM m (AnchoredFragment blk) → STM m UseBootstrapPeers → STM m LedgerStateJudgement → STM m FetchMode Source #