Skip to content

Commit

Permalink
block_info RPC optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
dostrelith678 committed Sep 14, 2021
1 parent d6b74c1 commit 329f5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/grest/rpc/blocks/block_info.sql
Expand Up @@ -48,7 +48,7 @@ BEGIN
LEFT JOIN SLOT_LEADER SL ON SL.ID = B.SLOT_LEADER_ID
LEFT JOIN POOL_HASH PH ON PH.ID = SL.POOL_HASH_ID
WHERE
ENCODE(B.HASH::bytea, 'hex') = _block_hash;
DECODE(_block_hash, 'hex') = B.HASH;
END;
$$;

Expand Down

0 comments on commit 329f5b0

Please sign in to comment.