2023-03-21 23:56:59 -04:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 23:56:59 -04:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00
2023-03-21 05:45:56 +00:00

CLIO MIGRATOR (ONE OFF!)

This tool is a (really) hacky way of migrating some data from clio due to the specific pull request 313 in that repo.

Specifically, it is meant to migrate NFT data such that:

  • The new nf_token_uris table is populated with all URIs for all NFTs known
  • The new issuer_nf_tokens_v2 table is populated with all NFTs known
  • The old issuer_nf_tokens table is dropped. This table was never used prior to the above-referenced PR, so it is very safe to drop.

This tool should be used as follows, with regard to the above update:

  1. Stop serving requests from your clio
  2. Stop your clio and upgrade it to the version after the after PR
  3. Start your clio
  4. Now, your clio is writing new data correctly. This tool will update your old data, while your new clio is running.
  5. Run this tool, using the exact same config as what you are using for your production clio.
  6. Once this tool terminates successfully, you can resume serving requests from your clio.

Compiling

Git-clone this project to your server. Then from the top-level directory:

mkdir build
cd build
cmake ..
cmake --build . -j 4

Once this completes, the migrator will be compiled as clio_migrator. Then you should copy your existing clio config somewhere and:

./clio_migrator <config path>

This migration will take a few hours to complete.

Description
An XRP Ledger API Server
Readme 27 MiB
Languages
C++ 97.2%
Go 1.4%
CMake 1%
Dockerfile 0.2%
Shell 0.1%
Other 0.1%