gini-network-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Network

Contents

Synopsis

Functions

runNetwork :: (HasCoreConfig env, HasCryptoConfig env, HasLogFunc env, HasNetworkConfig env, HasCacheStorage env) => RIO env () #

Run the peer-to-peer network (does not return).

withNetworkConfig #

Arguments

:: HostPreference

Address of interface to bind too

-> PortNumber

Port to bind to

-> SecretKey

Secret key of the node's account

-> NetworkId

Network ID A, B or C for test, beta or live network respectively

-> 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