Documentation ¶
Overview ¶
Package core holds core protocol types and constants
Index ¶
- Constants
- Variables
- type GlobalValues
- func (v *GlobalValues) Copy() *GlobalValues
- func (v *GlobalValues) CopyAsInterface() interface{}
- 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) Load(net *config.Network, 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) Store(net *config.Network, getState getStateFunc, putState putStateFunc) error
Constants ¶
View Source
const SnapshotMajorFormat = "snapshot-major-block-%09d.bpt"
View Source
const SnapshotVersion1 = 1
Variables ¶
View Source
var SnapshotMajorRegexp = regexp.MustCompile(`snapshot-major-block-\d+.bpt`)
Functions ¶
This section is empty.
Types ¶
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"` // contains filtered or unexported fields }
func (*GlobalValues) Copy ¶
func (v *GlobalValues) Copy() *GlobalValues
func (*GlobalValues) CopyAsInterface ¶
func (v *GlobalValues) CopyAsInterface() interface{}
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) Load ¶
func (g *GlobalValues) Load(net *config.Network, 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
Click to show internal directories.
Click to hide internal directories.