rpc: protocol version (#575)

* evm: protocol version

* changelog

* version

* fix

* support latest version only
This commit is contained in:
Federico Kunze
2020-12-08 20:51:26 +01:00
committed by GitHub
parent 3bb76e8533
commit ef1bef16e5
10 changed files with 20 additions and 60 deletions
-26
View File
@@ -1,26 +0,0 @@
package version
import (
"fmt"
"runtime"
)
// AppName represents the application name as the 'user agent' on the larger Ethereum network.
const AppName = "Ethermint"
// Version contains the application semantic version.
//
// TODO: How do we want to version this being that an initial Ethermint has
// been developed?
const Version = "0.0.0"
// ProtocolVersion is the supported Ethereum protocol version (e.g., Homestead, Olympic, etc.)
const ProtocolVersion = 63
// GitCommit contains the git SHA1 short hash set by build flags.
var GitCommit = ""
// ClientVersion returns the full version string for identification on the larger Ethereum network.
func ClientVersion() string {
return fmt.Sprintf("%s/%s+%s/%s/%s", AppName, Version, GitCommit, runtime.GOOS, runtime.Version())
}