mintlayer-core icon indicating copy to clipboard operation
mintlayer-core copied to clipboard

Add the possibility to pass prefix by a reference in storage key prefix iteration routines

Open iljakuklic opened this issue 3 years ago • 0 comments

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.

iljakuklic avatar Sep 14 '22 07:09 iljakuklic