Page MenuHomePhabricator

Install dependencies for Chronik: Rust and Corrosion
ClosedPublic

Authored by tobias_ruck on Jun 23 2022, 21:47.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0a3e7327bde7: Install dependencies for Chronik: Rust and Corrosion
Summary
Test Plan

On a Linux machine with docker:

  1. docker run -i -t bitcoinabc/bitcoin-abc-dev
  2. Run the commands added in this diff -> installs Rust and Corrosion successfully
  3. source $HOME/.cargo/env
  4. cargo --version results in version 1.61
  5. Test against experimental Chronik impl on GitHub: git clone https://github.com/raipay/bitcoin-abc.git && cd bitcoin-abc && git checkout chronik && mkdir build && cd build && cmake .. -GNinja -> Successfully run Corrosion and calls Rust
  6. ninja -> successfully builds bitcoind
  7. ./src/bitcoind -regtest -> runs Chronik, shows "Got BlockConnected 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206" and "Added block 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206 with 1 txs, height 0" in stdout

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Install specific Rust version via rustup

contrib/utils/install-dependencies.sh
147 ↗(On Diff #34124)

Nit: Use tar xzf. From testing tar determines the type from the suffix but I couldn't find this behavior in the man pages (it's supposed to be option -a), so better do it explicitely

tobias_ruck edited the test plan for this revision. (Show Details)

tar xzf (mandatory xkcd https://xkcd.com/1168/)

This revision is now accepted and ready to land.Jun 24 2022, 13:46