diff --git a/version/version.go b/version/version.go index 13fc2b94f6656e3ea1d37aa821e10f1ea02a1588..c8a0fab976d65e038b4c454e0ad8d1267cce187d 100644 --- a/version/version.go +++ b/version/version.go @@ -16,5 +16,25 @@ package version +import ( + "fmt" +) + const VERSION = "0.12.0" const TENDERMINT_VERSION = "0.6.0" + +const ( + // Client identifier to advertise over the network + clientIdentifier = "eris-db" + // Major version component of the current release + versionMajor = 0 + // Minor version component of the current release + versionMinor = 12 + // Patch version component of the current release + versionPatch = 0 +) + +func GetVersionString() string { + return fmt.Sprintf("%s-%d.%d.%d", clientIdentifier, versionMajor, versionMinor, + versionPatch) +}