Skip to content

Commit

Permalink
Merge branch 'beta' into merge-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Oct 19, 2023
2 parents 66529df + 23147a6 commit f551f1d
Show file tree
Hide file tree
Showing 81 changed files with 3,829 additions and 2,367 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-buster
FROM python:3.9-buster

RUN apt-get update && apt-get install -y wget git libxslt-dev iptables kmod swig3.0
RUN ln -s /usr/bin/swig3.0 /usr/bin/swig
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0
2.5.1
14 changes: 12 additions & 2 deletions admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from core.updates import soft_updates
from core.filebeat import update_filebeat_service

from tools.configs import BACKUP_RUN, INIT_LOCK_PATH
from tools.configs import BACKUP_RUN, INIT_LOCK_PATH, PULL_CONFIG_FOR_SCHAIN

Check warning on line 32 in admin.py

View check run for this annotation

Codecov / codecov/patch

admin.py#L32

Added line #L32 was not covered by tests
from tools.configs.web3 import (
ENDPOINT, ABI_FILEPATH, STATE_FILEPATH)
from tools.configs.ima import MAINNET_IMA_ABI_FILEPATH
Expand All @@ -38,7 +38,13 @@
from tools.sgx_utils import generate_sgx_key
from tools.wallet_utils import init_wallet

from web.models.schain import create_tables, set_schains_first_run, set_schains_monitor_id
from web.models.schain import (

Check warning on line 41 in admin.py

View check run for this annotation

Codecov / codecov/patch

admin.py#L41

Added line #L41 was not covered by tests
create_tables,
set_schains_backup_run,
set_schains_first_run,
set_schains_monitor_id,
set_schains_sync_config_run
)
from web.migrations import migrate


Expand Down Expand Up @@ -91,6 +97,10 @@ def init():
migrate()
set_schains_first_run()
set_schains_monitor_id()
if BACKUP_RUN:
set_schains_backup_run()
if PULL_CONFIG_FOR_SCHAIN:
set_schains_sync_config_run(PULL_CONFIG_FOR_SCHAIN)

Check warning on line 103 in admin.py

View check run for this annotation

Codecov / codecov/patch

admin.py#L100-L103

Added lines #L100 - L103 were not covered by tests
cleanup_notification_state()


Expand Down
4 changes: 1 addition & 3 deletions core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
from core.filebeat import update_filebeat_service

from tools.configs import CHECK_REPORT_PATH, META_FILEPATH, WATCHDOG_PORT
from tools.configs.web3 import NODE_REGISTER_CONFIRMATION_BLOCKS
from tools.helper import read_json
from tools.str_formatters import arguments_list_string
from tools.wallet_utils import check_required_balance
Expand Down Expand Up @@ -151,8 +150,7 @@ def create_node_on_contracts(self, ip, public_ip, port, name, domain_name,
gas_limit=gas_limit,
gas_price=gas_price,
skip_dry_run=skip_dry_run,
wait_for=True,
confirmation_blocks=NODE_REGISTER_CONFIRMATION_BLOCKS
wait_for=True
)
except TransactionFailedError:
logger.exception('Node creation failed')
Expand Down
Loading

0 comments on commit f551f1d

Please sign in to comment.