Page MenuHomePhabricator

[ecash-herald] Show peerName for staking reward winner, if available
ClosedPublic

Authored by bytesofman on Nov 23 2023, 12:41.

Details

Summary

Show avalanche peerName of staking rwd winner if available

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
herald-peer-names
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25714
Build 51008: Build Diffecash-herald-tests
Build 51007: arc lint + arc unit

Event Timeline

bytesofman updated this revision to Diff 43234.

revert axios upgrade, was done troubleshooting

remove test script, fix comment

remove unrelated line break, mark peername api mock as generated

image.png (298×482 px, 46 KB)

or if the API fails

image.png (211×439 px, 33 KB)

apps/ecash-herald/test/mocks/block.js
1 ↗(On Diff #43235)

this is a generated file, but it is also expected to change when we change things about msgs and the mocked blocks

Fabien requested changes to this revision.Nov 23 2023, 16:45
Fabien added a subscriber: Fabien.
Fabien added inline comments.
apps/ecash-herald/src/parse.js
1251 ↗(On Diff #43235)

remove

1622 ↗(On Diff #43235)

Does it properly displays the emojis ?

apps/ecash-herald/src/utils.js
91 ↗(On Diff #43235)

You're calling avalanche.cash. I know that's the same backend but it's confusing

This revision now requires changes to proceed.Nov 23 2023, 16:45
bytesofman marked 2 inline comments as done.

Clarify peername source, add unit test for emoji peername, remove unused param

bytesofman added inline comments.
apps/ecash-herald/src/parse.js
1622 ↗(On Diff #43235)

yes, verified in mock block unit test

Please take care to do a proper self review before submitting a diff. This has 6 revisions...

This revision is now accepted and ready to land.Nov 23 2023, 20:38