Add new variables to BANNER(_TOR)
$SERVER_VER will return the version number (eg: 1.0.10) $SERVER_SUBVERSION will return the full version string (eg: ElectrumX 1.0.10) $VERSION is kept for legacy which is the same as $SERVER_SUBVERSION
This commit is contained in:
parent
bf8145aba5
commit
5e92feb8a6
4
server/session.py
Normal file → Executable file
4
server/session.py
Normal file → Executable file
@ -289,7 +289,9 @@ class ElectrumX(SessionBase):
|
||||
revision //= 100
|
||||
daemon_version = '{:d}.{:d}.{:d}'.format(major, minor, revision)
|
||||
for pair in [
|
||||
('$VERSION', version.VERSION),
|
||||
('$VERSION', version.SUB_VERSION), # legacy
|
||||
('$SERVER_VERSION', version.VERSION),
|
||||
('$SERVER_SUBVERSION', version.SUB_VERSION),
|
||||
('$DAEMON_VERSION', daemon_version),
|
||||
('$DAEMON_SUBVERSION', network_info['subversion']),
|
||||
('$DONATION_ADDRESS', self.env.donation_address),
|
||||
|
||||
3
server/version.py
Normal file → Executable file
3
server/version.py
Normal file → Executable file
@ -1,5 +1,6 @@
|
||||
# Server name and protocol versions
|
||||
|
||||
VERSION = 'ElectrumX 1.0.10'
|
||||
VERSION = '1.0.10'
|
||||
SUB_VERSION = 'ElectrumX {}'.format(VERSION)
|
||||
PROTOCOL_MIN = '1.0'
|
||||
PROTOCOL_MAX = '1.0'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user