hbs2/hbs2-peer/app/RefChan.hs

35 lines
811 B
Haskell

{-# Language AllowAmbiguousTypes #-}
module RefChan where
import HBS2.Prelude.Plated
import HBS2.Actors.Peer
import HBS2.Base58
import HBS2.Clock
import HBS2.Data.Types.Refs
import HBS2.Net.Auth.Credentials
import HBS2.Net.Proto.RefChan
import HBS2.Net.Proto.Types
import HBS2.System.Logger.Simple
import PeerTypes
import PeerConfig
import Control.Monad
refChanWorker :: forall e s m . ( MonadIO m, MyPeer e
, HasStorage m
, Signatures s
, s ~ Encryption e
, IsRefPubKey s
, Pretty (AsBase58 (PubKey 'Sign s))
)
=> m ()
refChanWorker = forever do
pause @'Seconds 10
debug "I'm refchan worker"