HomePhabricator

[ecash-herald] Add new script to support testing, sendMsgByBlock

Description

[ecash-herald] Add new script to support testing, sendMsgByBlock

Summary:
T2972

It's impractical to keep adding more and more test blocks as the app covers more and more use cases. Often when adding a new feature, you just need to check the result one a single block, and not all of the test blocks.

This test script allows you to generate a msg and send to your test channel by blockheight, e.g. npm run sendMsgByBlock 700000

Test Plan:
npm test
npm run sendMsgByBlock 700000 and msgs send

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D14036

Details

Provenance
bytesofmanAuthored on Jun 9 2023, 23:32
bytesofmanPushed on Jun 12 2023, 22:31
Reviewer
Restricted Project
Differential Revision
D14036: [ecash-herald] Add new script to support testing, sendMsgByBlock
Parents
rABC3a5b26642dca: [ecash-herald] Remove deprecated function
Branches
Unknown
Tags
Unknown