@ -37,7 +37,48 @@ if [[ ! -f "${APP_DATA_DIR}/AT_LEAST_0-18-1" ]]; then
touch "${APP_DATA_DIR}/AT_LEAST_0-18-1"
fi
# migrate all wallet database files to ord/wallets, ord/testnet3/wallets, ord/regtest/wallets, and ord/signet/wallets for pre-0.18.2 versions: https://github.com/ordinals/ord/releases/tag/0.18.2
# the default unnamed wallet from `ord wallet create` is called ord.redb, but users can create named wallets as <anything>.redb
# we assume that all .redb files except index.redb are wallet database files
# for installs post 0.18.2, the AT_LEAST_0-18-2 file will be harmlessly created
if [[ ! -f "${APP_DATA_DIR}/AT_LEAST_0-18-2" ]]; then
echo "AT_LEAST_0-18-2 not found, proceeding with wallet database migration if necessary..."
# declare bitcoin network directories
declare -a dirs=("" "/testnet3" "/regtest" "/signet")
for dir in "${dirs[@]}"; do
dir_path="${ORDINALS_DATA_DIR}${dir}"
echo "Checking directory: ${dir_path}"
if [[ -d "${dir_path}" ]]; then
echo "${dir_path} exists."
files_to_move=() # an array to store wallet database files to migrate
# Iterate over .redb files that are not index.redb
for file in "${dir_path}"/*.redb; do
if [[ -f "${file}" && "$(basename "${file}")" != "index.redb" ]]; then
files_to_move+=("${file}")
echo "Adding ${file} to move list."
fi
done
# We only create the wallets directory if there are files to move. This mimics the behavior of ord 0.18.2, which only creates the wallets directory when a wallet database is created.
if [[ ${#files_to_move[@]} -gt 0 ]]; then
mkdir -p "${dir_path}/wallets"
echo "Creating wallets directory in ${dir_path}/wallets"
for file in "${files_to_move[@]}"; do
echo "Moving ${file} to ${dir_path}/wallets/"
mv "${file}" "${dir_path}/wallets/"
done
else
echo "No wallet files to move in ${dir_path}."
fi
else
echo "${dir_path} does not exist, skipping."
fi
done
touch "${APP_DATA_DIR}/AT_LEAST_0-18-2"
echo "Wallet database migration complete, flag file created."
else
echo "Migration flag file already exists, skipping wallet database migration."
tagline:Run your own index, block explorer, and command-line wallet for Ordinals
description:>
Run your own index, block explorer, and command-line wallet for Ordinals. The app automatically connects to your Bitcoin node on umbrelOS for trustless operation. Simply install the app and wait for Ordinals to index inscriptions and runes.
@ -16,10 +16,13 @@ description: >
Disclaimer:The Ordinals app does not control, filter, or moderate the content hosted on the Bitcoin blockchain. Consequently, you may come across NSFW (Not Safe For Work), objectionable, or unlawful material while using the app.
releaseNotes:>-
🚨 This update will automatically perform a full re-index of the ord database to prepare for upcoming runes.
🚨 This update will automatically migrate existing wallet databases to the new ord 0.18.2 file structure. Simply update the app, and the rest is taken care of — no manual migration required!
Ord 0.18.1 brings several crucial bug fixes and improvements related to runes. Full release notes can be found at:https://github.com/ordinals/ord/releases
⏳ If ord is currently indexing, it may take a few minutes to safely shut down before updating. Please be patient during this process.
Full release notes can be found at:https://github.com/ordinals/ord/releases