Crash fixes, reorg handling, and sync performance improvements
Some checks failed
Rust / Build on macOS-latest (push) Has been cancelled
Rust / Build on ubuntu-16.04 (push) Has been cancelled
Rust / Build on windows-latest (push) Has been cancelled
Rust / Linux ARMv7 (push) Has been cancelled
Rust / Linux ARM64 (push) Has been cancelled
Rust / Build on ubuntu-latest (push) Has been cancelled
Some checks failed
Rust / Build on macOS-latest (push) Has been cancelled
Rust / Build on ubuntu-16.04 (push) Has been cancelled
Rust / Build on windows-latest (push) Has been cancelled
Rust / Linux ARMv7 (push) Has been cancelled
Rust / Linux ARM64 (push) Has been cancelled
Rust / Build on ubuntu-latest (push) Has been cancelled
- Fix FFI panics with catch_unwind and safe CString construction - Handle poisoned mutex/RwLock after prior panics instead of crashing - Fix empty block list panics in clear_blocks and invalidate_block - Reuse Tokio runtime across block fetch batches to reduce overhead - Add fetch_blocks_with_runtime for caller-managed runtime lifecycle - Update branding, dependencies, and checkpoints for DragonX
This commit is contained in:
100
util/build.sh
100
util/build.sh
@@ -1,50 +1,50 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2021-2022 The Hush Developers
|
||||
# Distributed under the GPLv3 software license, see the accompanying
|
||||
# file LICENSE or https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
|
||||
# Purpose: Script to build Hush silentdragonxlite on x86 64-bit arch
|
||||
## Usage: ./util/build.sh
|
||||
|
||||
# Check if rustc is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v rustc)" ]; then
|
||||
echo 'Error: rustc is not installed. Install it and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
# Check if cargo is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v cargo)" ]; then
|
||||
echo 'Error: cargo is not installed. Install it and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
# Check if rustfmt is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v rustfmt)" ]; then
|
||||
echo 'Error: rustfmt is not installed. Install it and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Welcome to the Hush magic folks..."
|
||||
echo ""
|
||||
echo " #### ##### # #### # # ##### # # # # ##### ##### # # # ###### "
|
||||
echo "# # # # # # # # # # # # # # # # # # ## ## # "
|
||||
echo " #### # # # ##### # # # ##### # # # # # # # # # ## # ##### "
|
||||
echo " # # # # # # # # # # # # # # # # # # # # "
|
||||
echo "# # # # # # # # # # # # # # # # # # # # # # "
|
||||
echo " #### ##### ###### #### ###### # ##### #### # ###### ##### # # # # ###### "
|
||||
|
||||
# now to compiling...
|
||||
echo ""
|
||||
echo "You have the requirements installed, so let's build!"
|
||||
|
||||
cargo build --release
|
||||
|
||||
# check if compile was success
|
||||
if [ $? -ne 0 ]; then
|
||||
echo ""
|
||||
echo 'Error: Something went wrong and it did not build successfully... Please reach out if you need support.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Hush silentdragonxlite-cli is now compiled for you. Enjoy and reach out if you need support."
|
||||
echo "For options, run ./silentdragonxlite --help"
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2021-2022 The Hush Developers
|
||||
# Distributed under the GPLv3 software license, see the accompanying
|
||||
# file LICENSE or https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
|
||||
# Purpose: Script to build Hush silentdragonxlite on x86 64-bit arch
|
||||
## Usage: ./util/build.sh
|
||||
|
||||
# Check if rustc is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v rustc)" ]; then
|
||||
echo 'Error: rustc is not installed. Install it and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
# Check if cargo is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v cargo)" ]; then
|
||||
echo 'Error: cargo is not installed. Install it and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
# Check if rustfmt is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v rustfmt)" ]; then
|
||||
echo 'Error: rustfmt is not installed. Install it and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Welcome to the Hush magic folks..."
|
||||
echo ""
|
||||
echo " #### ##### # #### # # ##### # # # # ##### ##### # # # ###### "
|
||||
echo "# # # # # # # # # # # # # # # # # # ## ## # "
|
||||
echo " #### # # # ##### # # # ##### # # # # # # # # # ## # ##### "
|
||||
echo " # # # # # # # # # # # # # # # # # # # # "
|
||||
echo "# # # # # # # # # # # # # # # # # # # # # # "
|
||||
echo " #### ##### ###### #### ###### # ##### #### # ###### ##### # # # # ###### "
|
||||
|
||||
# now to compiling...
|
||||
echo ""
|
||||
echo "You have the requirements installed, so let's build!"
|
||||
|
||||
cargo build --release
|
||||
|
||||
# check if compile was success
|
||||
if [ $? -ne 0 ]; then
|
||||
echo ""
|
||||
echo 'Error: Something went wrong and it did not build successfully... Please reach out if you need support.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Hush silentdragonxlite-cli is now compiled for you. Enjoy and reach out if you need support."
|
||||
echo "For options, run ./silentdragonxlite --help"
|
||||
|
||||
Reference in New Issue
Block a user