MCPcopy Create free account
hub / github.com/33cn/chain33 / Version

Method Version

client/queueprotocol.go:668–677  ·  view source on GitHub ↗

Version get the software version

()

Source from the content-addressed store, hash-verified

666
667// Version get the software version
668func (q *QueueProtocol) Version() (*types.VersionInfo, error) {
669 types.AssertConfig(q.client)
670 return &types.VersionInfo{
671 Title: q.client.GetConfig().GetTitle(),
672 App: version.GetAppVersion(),
673 Chain33: version.GetVersion(),
674 LocalDb: version.GetLocalDBVersion(),
675 ChainID: q.client.GetConfig().GetChainID(),
676 }, nil
677}
678
679// GetNetInfo get the net information
680func (q *QueueProtocol) GetNetInfo(req *types.P2PGetNetInfoReq) (*types.NodeNetInfo, error) {

Callers

nothing calls this directly

Calls 7

AssertConfigFunction · 0.92
GetAppVersionFunction · 0.92
GetVersionFunction · 0.92
GetLocalDBVersionFunction · 0.92
GetConfigMethod · 0.65
GetTitleMethod · 0.45
GetChainIDMethod · 0.45

Tested by

no test coverage detected