From 0f97466f17bacd3bde440dc40477749dea89426e Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Thu, 4 Feb 2021 12:11:06 -0300 Subject: [PATCH] pass hash by ref to new multiverse --- jormungandr/src/explorer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jormungandr/src/explorer/mod.rs b/jormungandr/src/explorer/mod.rs index eee5ff0ab2..de7c0868d5 100644 --- a/jormungandr/src/explorer/mod.rs +++ b/jormungandr/src/explorer/mod.rs @@ -337,7 +337,7 @@ impl ExplorerDB { // the tip changes which means now a block is confirmed (at least after // the initial epoch_stability_depth blocks). - let block = if let Some(state_ref) = self.multiverse.get_ref(hash).await { + let block = if let Some(state_ref) = self.multiverse.get_ref(&hash).await { let state = state_ref.state(); Arc::clone(state.blocks.lookup(&hash).unwrap()) } else {