HomePhabricator

[Chronik] Refactor serialization, add `db_serialize` and `db_deserialize`.

Description

[Chronik] Refactor serialization, add db_serialize and db_deserialize.

Summary:
We will use de-/serialization a lot, so having a module with nice error handling is very helpful.

The db_ prefix indicates that this serialization is only meant for data going in and out of the database.

This also makes it much simpler to move to another serialization format if ever needed.

Test Plan: ninja check-crates

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Jul 24 2022, 18:25
tobias_ruckPushed on Jul 25 2022, 09:15
Reviewer
Restricted Project
Differential Revision
D11798: [Chronik] Refactor serialization, add `db_serialize` and `db_deserialize`.
Parents
rABC85d22539836d: doc/style followups in MempoolAcceptResult
Branches
Unknown
Tags
Unknown