Skip to content

Commit

Permalink
Set forcescp when restarted in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaneijk committed Jun 29, 2018
1 parent 400aed6 commit a379722
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ function init_db() {
function init_stellar_core() {
if [ -f $COREHOME/.quickstart-initialized ]; then
echo "core: already initialized"

if [ "$NETWORK" == "standalone" ]; then
start_postgres

run_silent "init-core-scp" sudo -u stellar stellar-core --forcescp --conf $COREHOME/etc/stellar-core.cfg
fi

return 0
fi
pushd $COREHOME
Expand Down

0 comments on commit a379722

Please sign in to comment.