Page MenuHomePhabricator

[herald] Refactor handleBlockConnected to support multiple api calls later
ClosedPublic

Authored by bytesofman on Apr 7 2023, 21:38.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Apr 9 2023, 06:59
Fabien added a subscriber: Fabien.
Fabien added inline comments.
apps/ecash-herald/src/events.js
38 ↗(On Diff #39415)

return await

49 ↗(On Diff #39415)

return false in the catch

This revision now requires changes to proceed.Apr 9 2023, 06:59
This revision is now accepted and ready to land.Apr 10 2023, 18:55