pos

package
v0.0.0-...-168a2c3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeGenesis

func FakeGenesis(participants *peers.Peers, conf *Config, db state.Database) (hash.Hash, error)

FakeGenesis is a stub

Types

type Config

type Config struct {
	TotalSupply uint64 `mapstructure:"total-supply"`
}

Config for a PoS

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig sets the default config for a PoS

func NewConfig

func NewConfig(totalSupply uint64) *Config

NewConfig creates a new PoS config

Jump to

Keyboard shortcuts

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