Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data OnlinePeer Source #
OnlinePeer | |
|
data UniqueInbox a Source #
UniqueInbox | |
|
Instances
Mailbox UniqueInbox Source # | |
Defined in Network.Haskoin.Node.Common mailboxEmptySTM :: UniqueInbox msg -> STM Bool # sendSTM :: msg -> UniqueInbox msg -> STM () # receiveSTM :: UniqueInbox msg -> STM msg # requeueMsg :: msg -> UniqueInbox msg -> STM () # | |
Eq (UniqueInbox a) Source # | |
Defined in Network.Haskoin.Node.Common (==) :: UniqueInbox a -> UniqueInbox a -> Bool # (/=) :: UniqueInbox a -> UniqueInbox a -> Bool # | |
Hashable (UniqueInbox a) Source # | |
Defined in Network.Haskoin.Node.Common hashWithSalt :: Int -> UniqueInbox a -> Int # hash :: UniqueInbox a -> Int # |
type PeerSupervisor m = Inbox (SupervisorMessage m) Source #
type NodeSupervisor m = Inbox (SupervisorMessage m) Source #
type Peer = UniqueInbox PeerMessage Source #
type Chain = Inbox ChainMessage Source #
type Manager = Inbox ManagerMessage Source #
data NodeConfig m Source #
NodeConfig | |
|
data ManagerConfig m Source #
ManagerConfig | |
|
data ManagerMessage Source #
data ChainConfig Source #
ChainConfig | |
|
data ChainMessage Source #
data ChainEvent Source #
Instances
Eq ChainEvent Source # | |
Defined in Network.Haskoin.Node.Common (==) :: ChainEvent -> ChainEvent -> Bool # (/=) :: ChainEvent -> ChainEvent -> Bool # | |
Show ChainEvent Source # | |
Defined in Network.Haskoin.Node.Common showsPrec :: Int -> ChainEvent -> ShowS # show :: ChainEvent -> String # showList :: [ChainEvent] -> ShowS # |
data PeerConfig Source #
PeerConfig | |
|
data PeerException Source #
Instances
Eq PeerException Source # | |
Defined in Network.Haskoin.Node.Common (==) :: PeerException -> PeerException -> Bool # (/=) :: PeerException -> PeerException -> Bool # | |
Show PeerException Source # | |
Defined in Network.Haskoin.Node.Common showsPrec :: Int -> PeerException -> ShowS # show :: PeerException -> String # showList :: [PeerException] -> ShowS # | |
Exception PeerException Source # | |
Defined in Network.Haskoin.Node.Common |
toSockAddr :: MonadUnliftIO m => HostPort -> m [SockAddr] Source #
fromSockAddr :: MonadUnliftIO m => SockAddr -> m (Maybe HostPort) Source #
computeTime :: MonadIO m => m Word32 Source #
managerGetPeers :: MonadIO m => Manager -> m [OnlinePeer] Source #
managerGetPeer :: MonadIO m => Manager -> Peer -> m (Maybe OnlinePeer) Source #
managerKill :: MonadIO m => PeerException -> Peer -> Manager -> m () Source #
managerNewPeers :: MonadIO m => Peer -> [NetworkAddressTime] -> Manager -> m () Source #
setManagerFilter :: MonadIO m => BloomFilter -> Manager -> m () Source #
peerSetFilter :: MonadIO m => BloomFilter -> Peer -> m () Source #
buildVersion :: MonadIO m => Network -> Word64 -> BlockHeight -> NetworkAddress -> NetworkAddress -> m Version Source #
chainGetAncestor :: MonadIO m => BlockHeight -> BlockNode -> Chain -> m (Maybe BlockNode) Source #
chainGetParents :: MonadIO m => BlockHeight -> BlockNode -> Chain -> m [BlockNode] Source #