Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LatestBlockInterval = uint32(720) // 720 blocks is about two hours
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Moniker string `toml:"moniker"` SessionTimeout time.Duration `toml:"session_timeout"` BlockPerMessage uint32 `toml:"block_per_message"` // TODO: Does the user need to change it? CacheSize int `toml:"cache_size"` // TODO: Does the user need to change it? NodeNetwork bool `toml:"node_network"` Firewall *firewall.Config `toml:"firewall"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) BasicCheck ¶ added in v0.15.0
BasicCheck performs basic checks on the configuration.
type MockSync ¶
func MockingSync ¶
type Synchronizer ¶
type Synchronizer interface { Start() error Stop() Moniker() string SelfID() peer.ID PeerSet() *peerset.PeerSet }
func NewSynchronizer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.