Skip to content

Commit

Permalink
Merge pull request #49 from lacepool/master
Browse files Browse the repository at this point in the history
fix: bring topology updates back
  • Loading branch information
abracadaniel committed Apr 13, 2022
2 parents d931b6e + 115d798 commit cf68a27
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
5 changes: 5 additions & 0 deletions scripts/functions/auto_topology
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function auto_topology {
cp /cfg-templates/crontab /crontab
service cron start
crontab /crontab
}
10 changes: 0 additions & 10 deletions scripts/functions/auto_topology_start

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/functions/info_pane
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

function info_pane {
source /scripts/init_node_vars
source /scripts/functions/auto_topology_start
source /scripts/functions/wait_for_sync

if [[ $AUTO_TOPOLOGY = "True" ]];
then
auto_topology_start
fi

wait_for_sync 99.98

Expand Down
6 changes: 5 additions & 1 deletion scripts/start-cardano-node
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ if [ -z "${COLD_CREATE}" ]; then
fi
fi


if [ -n "$CREATE" ]; then
create_stakepool ${COLD}
fi
Expand All @@ -117,6 +116,11 @@ if [ -n "$START_NODE" ]; then
# Start as staking node
/scripts/start-stakenode
else
if [[ $AUTO_TOPOLOGY = "True" ]]; then
source /scripts/functions/auto_topology
auto_topology
fi

source /scripts/functions/run_node
run_node
fi
Expand Down

0 comments on commit cf68a27

Please sign in to comment.