spesmilo / electrum-server

Electrum server
MIT License
301 stars 388 forks source link

Populate version from current git commit hash #158

Closed bauerj closed 8 years ago

bauerj commented 8 years ago

This combines the convenience of not having to manually bump version numbers with the ability to find out if a specific server provides a specific feature or uses a specific bugfix.

This also adds an electrum-server version command to check the currently running version.

This doesn't set the SHA-hash as a version for the installation process because setuptools/distutils requires an incrementing version format.

The protocol version was moved to a different variable that is only used in IRC peer discovery.