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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #35305)

should be 2022 ?

chronik/chronik-indexer/src/indexer.rs
39 ↗(On Diff #35305)

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