Skip to content

Commit 8027cc0

Browse files
committed
add exchange migration sql generation
1 parent b6bf5de commit 8027cc0

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

faucet

run.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ function run_docker_compose() {
102102

103103
function run_matchengine() {
104104
cd $EXCHANGE_DIR
105+
cp /tmp/markets_preset.sql migrations/20210223072038_markets_preset.sql
106+
git update-index --assume-unchanged migrations/20210223072038_markets_preset.sql
105107
make startall
106108
#cargo build --bin matchengine
107109
#nohup $EXCHANGE_DIR/target/debug/matchengine >> $EXCHANGE_DIR/matchengine.$CURRENTDATE.log 2>&1 &
@@ -181,18 +183,20 @@ function run_block_submitter() {
181183
}
182184

183185
function run_bin() {
184-
run_matchengine
185-
run_prove_master
186-
run_prove_workers
187-
run_rollup
188-
sleep 10
189186
deploy_tokens
187+
sleep 10
190188
boostrap_contract
191189
if [ $DX_CLEAN == 'TRUE' ]; then
192190
deploy_contracts
193191
else
194192
restore_contracts
195193
fi
194+
195+
run_matchengine
196+
run_prove_master
197+
run_prove_workers
198+
run_rollup
199+
196200
run_faucet
197201
run_block_submitter
198202
}

0 commit comments

Comments
 (0)