mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Get rid of genesis's UTXO dump * Allow known orphans when AllowSubmitBlockWhenNotSynced=true * gofmt * Avoid IBD without changing the pruning point when only genesis is available * Add DisallowDirectBlocksOnTopOfGenesis=true for mainnet * Remove any mention to nobanning to let stability tests run * Rename ifGenesisSetUtxoSet to loadUTXODataForGenesis Co-authored-by: Ori Newman <>
34 lines
722 B
Bash
Executable File
34 lines
722 B
Bash
Executable File
#!/bin/bash
|
|
rm -rf /tmp/kaspad-temp
|
|
|
|
kaspad --devnet --appdir=/tmp/kaspad-temp --profile=6061 --loglevel=debug &
|
|
KASPAD_PID=$!
|
|
KASPAD_KILLED=0
|
|
function killKaspadIfNotKilled() {
|
|
if [ $KASPAD_KILLED -eq 0 ]; then
|
|
kill $KASPAD_PID
|
|
fi
|
|
}
|
|
trap "killKaspadIfNotKilled" EXIT
|
|
|
|
sleep 1
|
|
|
|
application-level-garbage --devnet -alocalhost:16611 -b blocks.dat --profile=7000
|
|
TEST_EXIT_CODE=$?
|
|
|
|
kill $KASPAD_PID
|
|
|
|
wait $KASPAD_PID
|
|
KASPAD_KILLED=1
|
|
KASPAD_EXIT_CODE=$?
|
|
|
|
echo "Exit code: $TEST_EXIT_CODE"
|
|
echo "Kaspad exit code: $KASPAD_EXIT_CODE"
|
|
|
|
if [ $TEST_EXIT_CODE -eq 0 ] && [ $KASPAD_EXIT_CODE -eq 0 ]; then
|
|
echo "application-level-garbage test: PASSED"
|
|
exit 0
|
|
fi
|
|
echo "application-level-garbage test: FAILED"
|
|
exit 1
|