HomePhabricator

[herald] Refactor handleBlockConnected to support multiple api calls later

Description

[herald] Refactor handleBlockConnected to support multiple api calls later

Summary:
T2972

Depends on D13620

Refactor handleBlockConnected so that chronik API call has its own try...catch block

Future API calls will also need their own try...catch blocks

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
bytesofmanAuthored on Apr 7 2023, 21:37
bytesofmanPushed on Apr 12 2023, 14:26
Reviewer
Restricted Project
Differential Revision
D13622: [herald] Refactor handleBlockConnected to support multiple api calls later
Parents
rABCa1c0af9ef710: [herald] function to handle block connected msg
Branches
Unknown
Tags
Unknown