activations

package
v0.0.0-...-303b437 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 4 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ELECTION_NO_SORT = iota // 1 -- this is a passing activation and this ID may be reused once that height is passes and the references are removed

	TESTNET_COINBASE_PERIOD = iota // 2 -- this is a passing activation and this ID may be reused once that height is passes and the references are removed
	//
	ACTIVATION_TYPE_COUNT = iota - 1 // Always Last
)

Variables

View Source
var ActivationMap map[ActivationType]Activation
View Source
var ActivationNameMap map[ActivationType]string

Functions

func IsActive

func IsActive(id ActivationType, height int) bool

Types

type Activation

type Activation struct {
	Name             string
	Id               ActivationType
	Description      string
	DefaultHeight    int            // height of activation on nets not expressly listed (math.MaxInt32 means never)
	ActivationHeight map[string]int // this maps a network Name to the height for that network for the feature to activate
}

type ActivationType

type ActivationType int

func (ActivationType) String

func (id ActivationType) String() string

convert an Activation ID to a name

Jump to

Keyboard shortcuts

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