ord版本升级(0.15升级到0.18.5)

1、升级rust

~# rustup update stable
~# rustc --version
 rustc 1.79.0 (129f3b996 2024-06-10)

2、拉取0.18.5代码

~# wget https://github.com/ordinals/ord/archive/refs/tags/0.18.5.tar.gz
~# tar -xf 0.18.5.tar.gz
~# cd ord-0.18.5
~# cargo build --release

3、启动server
报错

~# /data/ord/bin/ord --cookie-file=/data/btc/btcdata/.cookie --bitcoin-rpc-url=127.0.0.1:8045 server
error: failed to open index: Manual upgrade required. Expected file format version 2, but file is version 1

报错是因为老的ord数据版本比现在版本低,所以就需要删除或者备份原来的数据,再重新同步

~# cd /root/.local/share/ord/
~/.local/share/ord# ls
index.redb
~/.local/share/ord# mv index.redb index.redb_bak
~/.local/share/ord# cd
~# /data/ord/bin/ord --cookie-file=/data/btc/btcdata/.cookie --bitcoin-rpc-url=127.0.0.1:8045 server

在这里插入图片描述

注:这次版本升级后调用btc-rpc参数改了

原来的-rpc-url需要改成–bitcoin-rpc-url

相关推荐

  1. 升级openssl3.X版本

    2024-06-17 10:26:03       55 阅读
  2. Django老项目升级版本

    2024-06-17 10:26:03       42 阅读
  3. linux- Python 升级指定版本

    2024-06-17 10:26:03       34 阅读
  4. ubuntu18.04 升级ubuntu22.04版本

    2024-06-17 10:26:03       83 阅读
  5. 升级anaconda中python3.10版本

    2024-06-17 10:26:03       47 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-17 10:26:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-17 10:26:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-17 10:26:03       82 阅读
  4. Python语言-面向对象

    2024-06-17 10:26:03       91 阅读

热门阅读

  1. JC/T 2653-2022 不发火砂浆检测

    2024-06-17 10:26:03       24 阅读
  2. diffuser格式与ckpt格式说明

    2024-06-17 10:26:03       31 阅读
  3. 程序员做电子书产品变现的复盘(4)

    2024-06-17 10:26:03       32 阅读
  4. 5.3.1_3 由遍历序列构造二叉树

    2024-06-17 10:26:03       27 阅读
  5. tapir_速读

    2024-06-17 10:26:03       29 阅读
  6. CRC8校验算法源码——C语言版

    2024-06-17 10:26:03       34 阅读
  7. cmake target_link_libraries 详解

    2024-06-17 10:26:03       27 阅读