marstr / envelopes

A collection of Go packages to express Budget calculations and state easily.
Apache License 2.0
6 stars 0 forks source link

Add persist.LoadImpact and persist.NearestCommonAncestor #48

Closed marstr closed 3 years ago

marstr commented 3 years ago

These functions extend the capability of a persist.Loader to find the amount of transactions. Until now, this has been a trivial operation, because you just subtract your parents State from yours. However, introducing multiple parents complicates that math enough to justify a helper method.