config

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package config contains structs that are useful for initializing consensus.

These structs do not implement the consensus.Replica or consensus.Configuration interfaces, but do contain more or less the same information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicaConfig

type ReplicaConfig struct {
	ID         hotstuff.ID
	PrivateKey consensus.PrivateKey
	Creds      credentials.TransportCredentials
	Replicas   map[hotstuff.ID]*ReplicaInfo
}

ReplicaConfig holds information needed by a replica.

func NewConfig

NewConfig returns a new ReplicaConfig instance.

type ReplicaInfo

type ReplicaInfo struct {
	ID      hotstuff.ID
	Address string
	PubKey  consensus.PublicKey
}

ReplicaInfo holds information about a replica.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL