Skip to content

Commit c772676

Browse files
Merge pull request #14 from ElrondNetwork/cli-testnet-fixes
Cli testnet fixes
2 parents 4259454 + c5592ed commit c772676

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

erdpy/testnet/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,13 @@ def loglevel(self):
274274
def arwen_binary(self):
275275
return self.features.get("arwen_binary")
276276

277-
278277
@classmethod
279278
def default(cls):
280279
config = dict()
281280
config['features'] = {
282281
'loglevel': '*:DEBUG',
283282
'proxy': True,
284-
'arwen_binary': True
283+
'arwen_binary': False
285284
}
286285
config['folders'] = {
287286
'elrond_go':

erdpy/testnet/setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ def patch_source_code(testnet_config: TestnetConfiguration):
224224

225225
folder = testnet_config.node_source()
226226

227-
file = path.join(folder, "core/constants.go")
228-
content = utils.read_file(file)
229-
utils.write_file(file, content)
230-
231227
file = path.join(folder, "cmd/node/main.go")
232228
content = utils.read_file(file)
233229
content = content.replace("secondsToWaitForP2PBootstrap = 20", "secondsToWaitForP2PBootstrap = 1")
@@ -270,7 +266,11 @@ def build_binaries(testnet_config: TestnetConfiguration):
270266

271267
for destination in testnet_config.all_nodes_folders():
272268
shutil.copy(node_folder / "node", destination)
273-
shutil.copy(node_folder / "arwen", destination)
269+
if arwen_binary:
270+
try:
271+
shutil.copy(node_folder / "arwen", destination)
272+
except:
273+
logger.warn("Could not copy the arwen binary!")
274274

275275
if workstation.get_platform() == "osx":
276276
shutil.copy(libwasmer_path, destination)

0 commit comments

Comments
 (0)