HomePhabricator

[Chronik] Fix `TxTokenData::from_db`

Description

[Chronik] Fix TxTokenData::from_db

Summary: This currently uses ColoredTx::default() (with outputs = []) when color_tx returns None, which is incorrect, correct is a Vec of None of size tx.outputs.len().

Test Plan: ninja check-functional

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Feb 8 2024, 15:38
tobias_ruckPushed on Feb 12 2024, 12:41
Reviewer
Restricted Project
Differential Revision
D15411: [Chronik] Fix `TxTokenData::from_db`
Parents
rABC0c6d20f9d62e: [Chronik] Add `WsSubTokenId` to WS subscribe to txs with a given token ID
Branches
Unknown
Tags
Unknown