HomePhabricator

[herald] Create msg lines while iterating over parsed txs

Description

[herald] Create msg lines while iterating over parsed txs

Summary:
T2972

Since app was built up incrementally, this inefficiency was overlooked.

parsedTxs has all the info necessary to create a tg msg line. It doesn't make sense to iterate over parsedTxs to create more parsed info arrays, then iterate over those to create msg lines.

Create msg lines while iterating over parsedTxs. Then organize them.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Apr 13 2023, 11:42
bytesofmanPushed on Apr 13 2023, 14:26
Reviewer
Restricted Project
Differential Revision
D13697: [herald] Create msg lines while iterating over parsed txs
Parents
rABC1ee8329d71c3: [ecashaddrjs] Patch bug in README link to correct display at npm listing
Branches
Unknown
Tags
Unknown