Skip to content

Conversation

@eprbell
Copy link
Owner

@eprbell eprbell commented Jan 13, 2025

Full implementation of per-wallet transfer analysis (discussed at #135) including comprehensive unit tests. This covers all the corner cases I was able to find. If you find a corner case that is not covered by a unit tests do let me know. Note that unit tests use Go style, table-driven format: this format is far superior to custom code and I think we should be using it for all new unit tests. Essentially it makes tests very easy to read and maintain: even non programmers could potentially read them and contribute ideas for new ones.

See an example of how to read and reason about RP2 Go-style unit tests here.

The code is essentially ready for review (except for a few minor lint issues).

@eprbell
Copy link
Owner Author

eprbell commented Feb 2, 2025

Fixed a bug in fee handling during transfer analysis. Also added check of actual amounts in tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants