marstr / envelopes

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

persist.WalkFunc should include the ID of the transaction as a parameter #42

Closed marstr closed 3 years ago

marstr commented 3 years ago

As it turns out, calculating SHA1s is relatively expensive operation. Since the walker must already have it in hand to have fetched the Transaction, it might as well just save that computer time and pass it in. Validation commands could audit it by recalculating, but that's a relatively high-level operation's concern.