Page MenuHomePhabricator

Make the getSpentCoins() utility function public
ClosedPublic

Authored by Fabien on Jul 31 2025, 08:03.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCacc47e782e41: Make the getSpentCoins() utility function public
Summary

So we can reuse it outside of the validation file. Move it to an appropriate place in the file and use an capitalized name for consistency. There is no change in behavior.

Test Plan

With Chronik:

ninja all check-all

Diff Detail

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

Event Timeline

Fabien requested review of this revision.Jul 31 2025, 08:03
PiRK added a subscriber: PiRK.

not sure if this is worth testing, I assumed that it has plenty of indirect functional test coverage. And anyway, this diff does not change the existing coverage.

This revision is now accepted and ready to land.Jul 31 2025, 11:15
In D18436#420163, @PiRK wrote:

not sure if this is worth testing, I assumed that it has plenty of indirect functional test coverage. And anyway, this diff does not change the existing coverage.

Yes it doesn't change the existing coverage and we have plenty of functional tests already so I don't think it makes much sense here.