Documentation
¶
Index ¶
Constants ¶
View Source
const ( Client = "avalanchego" // RPCChainVMProtocol should be bumped anytime changes are made which // require the plugin vm to upgrade to latest avalanchego release to be // compatible. RPCChainVMProtocol uint = 44 CurrentDatabase = "v1.4.5" PrevDatabase = "v1.0.0" )
Variables ¶
View Source
var ( Current = &Application{ Name: Client, Major: 1, Minor: 14, Patch: 0, } MinimumCompatibleVersion = &Application{ Name: Client, Major: 1, Minor: 14, Patch: 0, } PrevMinimumCompatibleVersion = &Application{ Name: Client, Major: 1, Minor: 13, Patch: 0, } // RPCChainVMProtocolCompatibility maps RPCChainVMProtocol versions to the // set of avalanchego versions that supported that version. This is not used // by avalanchego, but is useful for downstream libraries. RPCChainVMProtocolCompatibility map[uint][]string )
These are globals that describe network upgrades and node versions
View Source
var GitCommit string
GitCommit is set in the build script at compile time
Functions ¶
This section is empty.
Types ¶
type Application ¶ added in v1.4.5
type Application struct {
Name string `json:"name" yaml:"name"`
Major int `json:"major" yaml:"major"`
Minor int `json:"minor" yaml:"minor"`
Patch int `json:"patch" yaml:"patch"`
// contains filtered or unexported fields
}
func (*Application) Compare ¶ added in v1.7.14
func (a *Application) Compare(o *Application) int
Compare returns
-1 if a is less than o, 0 if a equals o, +1 if a is greater than o.
func (*Application) String ¶ added in v1.7.14
func (a *Application) String() string
type Compatibility ¶ added in v1.3.2
type Compatibility struct {
// Ordering expectations are:
// Current >= minCompatibleAfterUpgrade >= minCompatible
Current *Application
MinCompatibleAfterUpgrade *Application
MinCompatible *Application
UpgradeTime time.Time
// contains filtered or unexported fields
}
Compatibility is a utility for checking whether a peers version is compatible to the local version.
func GetCompatibility ¶ added in v1.4.5
func GetCompatibility(upgradeTime time.Time) *Compatibility
func (*Compatibility) Compatible ¶ added in v1.3.2
func (c *Compatibility) Compatible(peer *Application) bool
Compatible returns whether if the provided version is compatible with the locally running version.
This means that the version is connectable and that consensus messages can be made to the peer.
type Versions ¶ added in v1.11.9
type Versions struct {
Application string `json:"application"`
Database string `json:"database"`
RPCChainVM uint64 `json:"rpcchainvm"`
// Commit may be empty if GitCommit was not set at compile time
Commit string `json:"commit"`
Go string `json:"go"`
}
Versions contains the versions relevant to a build of avalanchego. In addition to supporting construction of the string displayed by --version, it is used to produce the output of --version-json and can be used to unmarshal that output.
func GetVersions ¶ added in v1.11.9
func GetVersions() *Versions
Click to show internal directories.
Click to hide internal directories.