Skip to content

Commit

Permalink
Read version from get_system_spec()
Browse files Browse the repository at this point in the history
  • Loading branch information
LefterisJP committed Sep 1, 2017
1 parent e207edb commit b490e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion raiden/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

INITIAL_PORT = 40001

RAIDEN_VERSION = "0.0.6" # Keep in sync with version in setup.py
CACHE_TTL = 60
ESTIMATED_BLOCK_TIME = 7
GAS_LIMIT = 3141592 # Morden's gasLimit.
Expand Down
4 changes: 3 additions & 1 deletion raiden/tests/smart_contracts/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from raiden.tests.fixtures.tester import tester_token_address
from raiden.utils import sha3
from raiden.settings import RAIDEN_VERSION
from raiden.utils import get_system_spec

log = slogging.getLogger(__name__) # pylint: disable=invalid-name

Expand Down Expand Up @@ -73,6 +73,8 @@ def test_all_contracts_same_version(
endpoint_discovery_services):
""" Test that all contracts in the repository have the same version"""
privatekey0 = tester.DEFAULT_KEY
RAIDEN_VERSION = get_system_spec()['raiden']
RAIDEN_VERSION = RAIDEN_VERSION.split('+')[0]

registry_version = tester_registry.contract_version(sender=privatekey0)
channelmanager_version = tester_channelmanager.contract_version(sender=privatekey0)
Expand Down

0 comments on commit b490e2e

Please sign in to comment.