Page MenuHomePhabricator

[ecash-herald] Show address for self-send txs when there is only 1 address
ClosedPublic

Authored by bytesofman on Jul 7 2023, 18:56.

Details

Summary

Now that we have an address directory, it can be interesting to know when some addresses are sending to themselves

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Need a way to show this in a unit test without a mock block, or a good mock block to add

Add test block to cover case

Fabien requested changes to this revision.Jul 10 2023, 19:24
Fabien added a subscriber: Fabien.

The test vectors are going out of control: this is adding > 1000 lines of data in blocks.js where >95% of it is irrelevant for this change.
You really need to sort this out.

This revision now requires changes to proceed.Jul 10 2023, 19:24

Now that generateMocks is configured to not overwrite an existing mocked block, can just build a fake block that shows new features.

Add feature where txid is already tested

Now that we are only dealing with one block -- you can see this already-tested txid has changed its output

(The very last text in the left/right diff change section for block.js, 🐳1 address ➡️ itself becomes 🐳 Binance ➡️ itself

image.png (72×401 px, 12 KB)

This revision is now accepted and ready to land.Jul 18 2023, 14:28