From 4d718866937214a337a3e4abde0b7eed5f6668c1 Mon Sep 17 00:00:00 2001 From: etienne-napoleone Date: Tue, 4 Dec 2018 18:36:47 +0700 Subject: [PATCH] fix(conf): use devnet tag for chain only --- tmn/configuration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tmn/configuration.py b/tmn/configuration.py index 61d69d7..954986e 100644 --- a/tmn/configuration.py +++ b/tmn/configuration.py @@ -104,7 +104,7 @@ def _compose(self) -> None: elif self.net == 'testnet': tag = 'testnet' else: - tag = 'devnet' + tag = 'latest' if self.api == 'True': # this is dirty, should be refactored tomochain_ports = {'30303/udp': 30303, '30303/tcp': 30303, 8545: 8545, 8546: 8546} @@ -127,7 +127,9 @@ def _compose(self) -> None: ) self.services['tomochain'] = Service( name='{}_tomochain'.format(self.name), - image='tomochain/node:{}'.format(tag), + image='tomochain/node:{}'.format( + 'devnet' if tag == 'latest' else tag + ), network=self.networks['tmn'].name, environment={ 'IDENTITY': '{}'.format(self.name),