HomePhabricator

[Chronik] Add `TokenWriter` and `TokenReader`

Description

[Chronik] Add TokenWriter and TokenReader

Summary:
Parses, colors, verifies and indexes ALP/SLP tokens in a batch (i.e. block).

This doesn't change the behavior of Chronik yet, which will come in a future diff.

Details about the indexing strategy and tradeoffs can be found in the doc comment of TokenWriter.

Depends on D15046 and D15047.

Test Plan: cargo test -p chronik-db

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15048

Details

Provenance
tobias_ruckAuthored on Dec 30 2023, 17:31
tobias_ruckPushed on Jan 5 2024, 10:03
Reviewer
Restricted Project
Differential Revision
D15048: [Chronik] Add `TokenWriter` and `TokenReader`
Parents
rABC5a0df0b4acaa: [Chronik] Send regular pings from WebSocket to prevent disconnects
Branches
Unknown
Tags
Unknown