Skip to content

Commit

Permalink
Increase sidechain version information
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowenwe committed Jun 3, 2019
1 parent 026a0ed commit 9a4b232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dashboard/dashboard.go
Expand Up @@ -93,7 +93,7 @@ func New(config *Config, commit string, logdir string) *Dashboard {
history: &Message{
General: &GeneralMessage{
Commit: commit,
Version: fmt.Sprintf("v%d.%d.%d%s", params.VersionMajor, params.VersionMinor, params.VersionPatch, versionMeta),
Version: fmt.Sprintf("v%d.%d.%d.%d%s", params.VersionMajor, params.VersionMinor, params.VersionPatch, params.VersionCross, versionMeta),
},
System: &SystemMessage{
ActiveMemory: emptyChartEntries(now, activeMemorySampleLimit, config.Refresh),
Expand Down
2 changes: 1 addition & 1 deletion eth/backend.go
Expand Up @@ -196,7 +196,7 @@ func makeExtraData(extra []byte) []byte {
if len(extra) == 0 {
// create default extradata
extra, _ = rlp.EncodeToBytes([]interface{}{
uint(params.VersionMajor<<16 | params.VersionMinor<<8 | params.VersionPatch),
uint(params.VersionMajor<<32 | params.VersionMinor<<16 | params.VersionPatch<<8 | params.VersionCross),
"geth",
runtime.Version(),
runtime.GOOS,
Expand Down
3 changes: 2 additions & 1 deletion params/version.go
Expand Up @@ -24,12 +24,13 @@ const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 8 // Minor version component of the current release
VersionPatch = 17 // Patch version component of the current release
VersionCross = 0 // Cross version component of the current release
VersionMeta = "stable" // Version metadata to append to the version string
)

// Version holds the textual version string.
var Version = func() string {
return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
return fmt.Sprintf("%d.%d.%d.%d", VersionMajor, VersionMinor, VersionPatch, VersionCross)
}()

// VersionWithMeta holds the textual version string including the metadata.
Expand Down

0 comments on commit 9a4b232

Please sign in to comment.