ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.MiniProtocol.ChainSync.Server

Synopsis

Documentation

data Tip b Source #

Used in chain-sync protocol to advertise the tip of the server's chain.

Instances

Instances details
StandardHash b => Eq ( Tip b)
Instance details

Defined in Ouroboros.Network.Block

StandardHash b => Show ( Tip b)
Instance details

Defined in Ouroboros.Network.Block

Generic ( Tip b)
Instance details

Defined in Ouroboros.Network.Block

Associated Types

type Rep ( Tip b) :: Type -> Type Source #

StandardHash b => NoThunks ( Tip b)
Instance details

Defined in Ouroboros.Network.Block

Condense ( HeaderHash b) => Condense ( Tip b) Source #
Instance details

Defined in Ouroboros.Consensus.Util.Condense

ShowProxy b => ShowProxy ( Tip b :: Type )
Instance details

Defined in Ouroboros.Network.Block

type Rep ( Tip b)
Instance details

Defined in Ouroboros.Network.Block

chainSyncBlocksServer :: forall m blk. ( IOLike m, HasHeader ( Header blk)) => Tracer m ( TraceChainSyncServerEvent blk) -> ChainDB m blk -> Follower m blk ( WithPoint blk ( Serialised blk)) -> ChainSyncServer ( Serialised blk) ( Point blk) ( Tip blk) m () Source #

Chain Sync Server for blocks for a given a ChainDB .

The local node-to-client protocol uses the chain sync mini-protocol with chains of full blocks (rather than a header / body split).

chainSyncHeadersServer :: forall m blk. ( IOLike m, HasHeader ( Header blk)) => Tracer m ( TraceChainSyncServerEvent blk) -> ChainDB m blk -> Follower m blk ( WithPoint blk ( SerialisedHeader blk)) -> ChainSyncServer ( SerialisedHeader blk) ( Point blk) ( Tip blk) m () Source #

Chain Sync Server for block headers for a given a ChainDB .

The node-to-node protocol uses the chain sync mini-protocol with chain headers (and fetches blocks separately with the block fetch mini-protocol).

Trace events