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
Branch
herald-refactor-stack
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23090
Build 45800: Build Diffecash-herald-tests
Build 45799: arc lint + arc unit

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

return await

49

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