ZcashFoundation / zebra

Zcash - Financial Privacy in Rust 🦓
https://zfnd.org/zebra/
Apache License 2.0
412 stars 106 forks source link

suggestion to don't clone `self` in `get_block` #9044

Open oxarbitrage opened 2 days ago

oxarbitrage commented 2 days ago

Motivation

In https://github.com/ZcashFoundation/zebra/pull/9006 we are cloning self in the get_block implementation which could bring some problems in some tests.

Solution

This is an alternative to do that that @conradoplg might find useful, feel free to discard.