Page MenuHomePhabricator

[tg bot] Fix viabtc miner parsing
AbandonedPublic

Authored by bytesofman on Mar 23 2023, 17:34.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

T2972

Depends on D13444

Parse viabtc miner by looking for the first '/' after the '/ViaBtc/' , instead of the last '/' from end of the string. Sometimes you get a random '/' there which makes you include garbage.

Test Plan

I tested on blockhash 000000000000000009d3199a377cb4320d5c7c5256aff82f1f8f29b3662af198 after seeing it come in garbled but decided it wasn't worth including this in the large set of unit test blocks.
npm test
npm run msgs and viabtc miners are good

Diff Detail

Repository
rABC Bitcoin ABC
Branch
new-tg-bot-stack
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22628
Build 44876: Build Diff
Build 44875: arc lint + arc unit