Page MenuHomePhabricator

[Chronik] Add minimal `ChronikIndexer`, to sort bitcoind's blocks and txs into Chronik's db
ClosedPublic

Authored by tobias_ruck on Sep 29 2022, 16:38.

Details

Summary

ChronikBlock will contain all the data to index a block.

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20260
Build 40200: Build Diffbuild-chronik
Build 40199: arc lint + arc unit

Event Timeline

The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.

Fix logging linker issue for tests

chronik/chronik-indexer/Cargo.toml
6

should be 2022 ?

chronik/chronik-indexer/src/indexer.rs
39

The indexer stuff already has a placeholder, indexes/chronik is more consistent with the node.

Fabien requested changes to this revision.Sep 30 2022, 09:13

Should you flush to DB upon shutdown as well ?

This revision now requires changes to proceed.Sep 30 2022, 09:13

Move rocksdb to indexes/chronik (also create the indexes folder if it doesn't exist)

This revision is now accepted and ready to land.Oct 1 2022, 14:16