Skip to content

Commit

Permalink
pass hash by ref to new multiverse
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Feb 4, 2021
1 parent 9232964 commit 0f97466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jormungandr/src/explorer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0f97466

Please sign in to comment.