From 99c4709e6f0e71515575c4acd6142ddd544b8ddc Mon Sep 17 00:00:00 2001 From: Mayank Chhabra Date: Fri, 12 Apr 2024 21:21:24 +0700 Subject: [PATCH] Update Ordinals to 0.18.1 (#1045) --- ordinals/docker-compose.yml | 2 +- ordinals/hooks/pre-start | 15 +++++++++------ ordinals/umbrel-app.yml | 13 ++++--------- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/ordinals/docker-compose.yml b/ordinals/docker-compose.yml index c64c7d5..4dd1728 100644 --- a/ordinals/docker-compose.yml +++ b/ordinals/docker-compose.yml @@ -8,7 +8,7 @@ services: PROXY_AUTH_ADD: "false" ord: - image: nmfretz/ord:v0.17.1@sha256:ee391d9152c0ac6f0f6909c19fc14e747af72abf9813d6a79b22d6f4a55ef29c + image: mayankchhabra/ord:0.18.1@sha256:9cc88552cca2b59ed6417790ec1b43f4dbfaf0c9ea3fdf79bf055dcd6dcb60b8 # This needs to run as root # user: "1000:1000" restart: on-failure diff --git a/ordinals/hooks/pre-start b/ordinals/hooks/pre-start index 83448c1..7cadf39 100755 --- a/ordinals/hooks/pre-start +++ b/ordinals/hooks/pre-start @@ -26,12 +26,15 @@ if [[ -f "${APP_DATA_DIR}/index.redb" ]]; then fi # re-index the ordinals data for runes -# for installs post 0.17.1 this file will be harmlessly created -if [[ ! -f "${APP_DATA_DIR}/AT_LEAST_0-17-1" ]]; then - if [[ -f "${ORDINALS_DATA_DIR}/index.redb" ]]; then - rm -f "${ORDINALS_DATA_DIR}/index.redb" - fi - touch "${APP_DATA_DIR}/AT_LEAST_0-17-1" +# for installs post 0.18.1 this file will be harmlessly created +if [[ ! -f "${APP_DATA_DIR}/AT_LEAST_0-18-1" ]]; then + # delete index db for all bitcoin networks + for file in "${ORDINALS_DATA_DIR}/index.redb" "${ORDINALS_DATA_DIR}/testnet3/index.redb" "${ORDINALS_DATA_DIR}/regtest/index.redb" "${ORDINALS_DATA_DIR}/signet/index.redb"; do + if [[ -f "${file}" ]]; then + rm -f "${file}" + fi + done + touch "${APP_DATA_DIR}/AT_LEAST_0-18-1" fi diff --git a/ordinals/umbrel-app.yml b/ordinals/umbrel-app.yml index ca1fa8f..3ceee8d 100644 --- a/ordinals/umbrel-app.yml +++ b/ordinals/umbrel-app.yml @@ -2,11 +2,11 @@ manifestVersion: 1 id: ordinals category: bitcoin name: Ordinals -version: "0.17.1" +version: "0.18.1" 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. - + Use the block explorer to view Ordinal inscriptions. Search blocks, transactions, outputs, and individual satoshis. @@ -16,15 +16,10 @@ 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 requires a full re-indexing of the ord database to prepare for upcoming runes! - This is handled for you automatically by Umbrel when you update the app. - - - Advanced users: running ord commands via the Terminal has now been simplified. From inside the ord container, simply type the command you want to run as listed in the ord help menu. For example, to create a wallet, run `ord wallet create`. - An upcoming umbrelOS update will allow you to run commands from a Terminal right from the umbrelOS interface. + 🚨 This update will automatically perform a full re-index of the ord database to prepare for upcoming runes. - Full release notes for Ord can be found at: https://github.com/ordinals/ord/releases + 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 developer: Casey Rodarmor website: https://ordinals.com/ dependencies: