mintlayer-core
mintlayer-core copied to clipboard
Add the possibility to pass prefix by a reference in storage key prefix iteration routines
In the key prefix iteration introduced in #411, the prefix is currently passed by value but it is only read. In general, it would be more appropriate to pass it by reference in some cases. Support for that could be added, e.g. by using the Borrow trait to support both.
Some rationale and discussion here.