Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ChainSyncEvent a
- data ChainSyncEventException = NoIntersectionFound
- data RollbackException = RollbackLocationNotFound ChainPoint ChainTip
- bimBlockNo :: BlockInMode CardanoMode -> BlockNo
- bimSlotNo :: BlockInMode CardanoMode -> SlotNo
- getEpochNo :: LedgerState -> Maybe EpochNo
- fromChainTip :: ChainTip -> WithOrigin BlockNo
- linkedAsync :: IO a -> IO ()
- mkLocalNodeConnectInfo :: NetworkId -> FilePath -> LocalNodeConnectInfo CardanoMode
- mkConnectInfo :: Env -> FilePath -> LocalNodeConnectInfo CardanoMode
- ignoreRollbacks :: Monad m => Stream ( Of ( ChainSyncEvent a)) m r -> Stream ( Of a) m r
ChainSyncEvent
data ChainSyncEvent a Source #
Instances
data ChainSyncEventException Source #
Instances
data RollbackException Source #
Instances
Eq RollbackException Source # | |
Defined in Cardano.Streaming.Helpers (==) :: RollbackException -> RollbackException -> Bool Source # (/=) :: RollbackException -> RollbackException -> Bool Source # |
|
Show RollbackException Source # | |
Defined in Cardano.Streaming.Helpers |
|
Exception RollbackException Source # | |
Defined in Cardano.Streaming.Helpers |
Orphans
Block
bimSlotNo :: BlockInMode CardanoMode -> SlotNo Source #
getEpochNo :: LedgerState -> Maybe EpochNo Source #
fromChainTip :: ChainTip -> WithOrigin BlockNo Source #
IO
linkedAsync :: IO a -> IO () Source #
LocalNodeConnectInfo
mkConnectInfo :: Env -> FilePath -> LocalNodeConnectInfo CardanoMode Source #
Derive LocalNodeConnectInfo from Env.
ignoreRollbacks :: Monad m => Stream ( Of ( ChainSyncEvent a)) m r -> Stream ( Of a) m r Source #
Ignore rollback events in the chainsync event stream. Useful for monitor which blocks has been seen by the node, regardless whether they are permanent.