Documentation ¶
Overview ¶
Package core holds core protocol types and constants
Index ¶
- Constants
- Variables
- type BigRat
- type GlobalValues
- func (v *GlobalValues) Copy() *GlobalValues
- func (v *GlobalValues) CopyAsInterface() interface{}
- func (g *GlobalValues) DiffValidators(h *GlobalValues, partitionID string) (map[[32]byte]ValidatorUpdate, error)
- func (v *GlobalValues) Equal(u *GlobalValues) bool
- func (g *GlobalValues) FormatGlobals() protocol.DataEntry
- func (g *GlobalValues) FormatNetwork() protocol.DataEntry
- func (g *GlobalValues) FormatOracle() protocol.DataEntry
- func (g *GlobalValues) FormatRouting() protocol.DataEntry
- func (g *GlobalValues) Load(net config.NetworkUrl, getState getStateFunc) error
- func (g *GlobalValues) ParseGlobals(entry protocol.DataEntry) error
- func (g *GlobalValues) ParseNetwork(entry protocol.DataEntry) error
- func (g *GlobalValues) ParseOracle(entry protocol.DataEntry) error
- func (g *GlobalValues) ParseRouting(entry protocol.DataEntry) error
- func (g *GlobalValues) Store(net config.NetworkUrl, getState getStateFunc, putState putStateFunc) error
- type Hash
- type ValidatorUpdate
Constants ¶
View Source
const SnapshotMajorFormat = "snapshot-major-block-%09d.bpt"
View Source
const SnapshotVersion1 = 1
View Source
const ValidatorUpdateAdd = 1
View Source
const ValidatorUpdateRemove = 2
Variables ¶
View Source
var SnapshotMajorRegexp = regexp.MustCompile(`snapshot-major-block-\d+.bpt`)
Functions ¶
This section is empty.
Types ¶
type BigRat ¶
type BigRat struct {
// contains filtered or unexported fields
}
type GlobalValues ¶
type GlobalValues struct { Oracle *protocol.AcmeOracle `json:"oracle,omitempty" form:"oracle" query:"oracle" validate:"required"` Globals *protocol.NetworkGlobals `json:"globals,omitempty" form:"globals" query:"globals" validate:"required"` Network *protocol.NetworkDefinition `json:"network,omitempty" form:"network" query:"network" validate:"required"` Routing *protocol.RoutingTable `json:"routing,omitempty" form:"routing" query:"routing" validate:"required"` }
func (*GlobalValues) Copy ¶
func (v *GlobalValues) Copy() *GlobalValues
func (*GlobalValues) CopyAsInterface ¶
func (v *GlobalValues) CopyAsInterface() interface{}
func (*GlobalValues) DiffValidators ¶
func (g *GlobalValues) DiffValidators(h *GlobalValues, partitionID string) (map[[32]byte]ValidatorUpdate, error)
func (*GlobalValues) Equal ¶
func (v *GlobalValues) Equal(u *GlobalValues) bool
func (*GlobalValues) FormatGlobals ¶
func (g *GlobalValues) FormatGlobals() protocol.DataEntry
func (*GlobalValues) FormatNetwork ¶
func (g *GlobalValues) FormatNetwork() protocol.DataEntry
func (*GlobalValues) FormatOracle ¶
func (g *GlobalValues) FormatOracle() protocol.DataEntry
func (*GlobalValues) FormatRouting ¶
func (g *GlobalValues) FormatRouting() protocol.DataEntry
func (*GlobalValues) Load ¶
func (g *GlobalValues) Load(net config.NetworkUrl, getState getStateFunc) error
func (*GlobalValues) ParseGlobals ¶
func (g *GlobalValues) ParseGlobals(entry protocol.DataEntry) error
func (*GlobalValues) ParseNetwork ¶
func (g *GlobalValues) ParseNetwork(entry protocol.DataEntry) error
func (*GlobalValues) ParseOracle ¶
func (g *GlobalValues) ParseOracle(entry protocol.DataEntry) error
func (*GlobalValues) ParseRouting ¶
func (g *GlobalValues) ParseRouting(entry protocol.DataEntry) error
func (*GlobalValues) Store ¶
func (g *GlobalValues) Store(net config.NetworkUrl, getState getStateFunc, putState putStateFunc) error
type ValidatorUpdate ¶
type ValidatorUpdate int
Click to show internal directories.
Click to hide internal directories.