Skip to content

Commit

Permalink
Merge pull request #2910 from dusk-network/neotamandua/fix_gql_check_…
Browse files Browse the repository at this point in the history
…block

rusk: fix gql check_block endpoint
  • Loading branch information
Neotamandua authored Nov 8, 2024
2 parents 3445844 + 47bad12 commit 388f970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rusk/src/lib/http/chain/graphql/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub(super) async fn check_block(
let (db, _) = ctx.data::<DBContext>()?;
let block_hash = hex::decode(hex_block_hash)?;
let block = db.read().await.view(|t| {
t.fetch_block_hash_by_height(block_height).map(|hash| {
t.block_hash_by_height(block_height).map(|hash| {
if let Some(hash) = hash {
hash == block_hash[..]
} else {
Expand Down

0 comments on commit 388f970

Please sign in to comment.