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

Ouroboros.Consensus.Storage.ChainDB.Impl.Follower

Description

Followers

Synopsis

Documentation

closeAllFollowers :: IOLike m => ChainDbEnv m blk -> m () Source #

Close all open block and header Follower s.

switchFork Source #

Arguments

:: forall m blk b. ( HasHeader blk, HasHeader ( Header blk))
=> Point blk

Intersection point between old and new chain

-> AnchoredFragment ( Header blk)

The new chain

-> FollowerState m blk b
-> FollowerState m blk b

Update the given FollowerState to account for switching the current chain to the given fork (which might just be an extension of the current chain).

PRECONDITION: the intersection point must be within the fragment bounds of the new chain