| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Gini.Network
Synopsis
- runNetwork :: (HasCoreConfig env, HasCryptoConfig env, HasLogFunc env, HasNetworkConfig env, HasCacheStorage env) => RIO env ()
- withNetworkConfig :: HostPreference -> PortNumber -> SecretKey -> NetworkId -> NonEmpty (HostName, PortNumber) -> (NetworkConfig -> RIO env a) -> RIO env a
- module Gini.Network.Types
Functions
runNetwork :: (HasCoreConfig env, HasCryptoConfig env, HasLogFunc env, HasNetworkConfig env, HasCacheStorage env) => RIO env () #
Run the peer-to-peer network (does not return).
Arguments
| :: HostPreference | Address of interface to bind too |
| -> PortNumber | Port to bind to |
| -> SecretKey | Secret key of the node's account |
| -> NetworkId | Network ID |
| -> NonEmpty (HostName, PortNumber) | A list of hostname/port pairs of preconfigured peers |
| -> (NetworkConfig -> RIO env a) | What to do with the config |
| -> RIO env a |
Create a new NetworkConfig with the given settings.
Types
module Gini.Network.Types
