Code landed in D17195 but did not implement in event handler
Details
Details
- Reviewers
emack - Group Reviewers
Restricted Project - Commits
- rABC9a35304c1008: [ecash-herald] Remember to pass the staking info param for daily summary msg
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
apps/ecash-herald/src/events.ts | ||
---|---|---|
372 ↗ | (On Diff #51103) | but you're not returning here, and it's proceeding to summarizeTxHistory below. |
apps/ecash-herald/src/events.ts | ||
---|---|---|
372 ↗ | (On Diff #51103) | this is the existing behavior. activeStakers stays undefined, and we simply do not include the msg lines that depend on activeStakers. We do not want to return if we miss the price API call or the active stakers API call. We still send the msg, just not with the info we fail to get. we "should" be testing the parent function, handleUtcMidnight, but it's not trivial to mock a days worth of blockTxs. You can see this is the same logic used in getDailySummary.ts, which can be tested with ts-node scripts/getDailySummary |