ouroboros-consensus-0.27.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.ChainDB.Impl.Follower

Description

Followers

Synopsis

Documentation

closeAllFollowersIOLike m ⇒ ChainDbEnv m blk → m () Source #

Close all open block and header Followers.

switchFork Source #

Arguments

∷ ∀ (m ∷ TypeType) blk b. GetHeader blk 
AnchoredFragment (Header blk)

Suffix of the old chain anchored at the intersection with the new chain.

FollowerState m blk b 
FollowerState m blk b 

Switches the follower to the new fork, by checking whether the follower is following an old fork, and updating the follower state to rollback to the intersection point if it is.