Skip to content

Commit

Permalink
Update node/src/store.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Yiannis Marangos <psyberbits@gmail.com>
  • Loading branch information
fl0rek and oblique authored Sep 21, 2023
1 parent 10783ae commit b9ef4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl InMemoryStore {

#[instrument(err)]
pub fn get_head(&self) -> Result<ExtendedHeader, StoreError> {
let head_height = self.head_height.load(Ordering::Acquire);
let head_height = self.get_head_height();
if head_height == 0 {
return Err(StoreError::NotFound);
}
Expand Down

0 comments on commit b9ef4bc

Please sign in to comment.