Skip to content

Commit c052fa0

Browse files
committed
consistent usage of BlockHash
1 parent c3b9c1c commit c052fa0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

storage/blockchain/src/ops/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ pub fn block_exists(
779779
pub(crate) fn block_height(
780780
db: &BlockchainDatabase,
781781
tx_ro: &fjall::Snapshot,
782-
hash: &[u8; 32],
782+
hash: &BlockHash,
783783
) -> DbResult<Option<usize>> {
784784
let Some(block_height) = tx_ro.get(&db.block_heights, hash)? else {
785785
return Ok(None);

storage/blockchain/src/service/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ fn find_first_unknown(db: &BlockchainDatabase, block_ids: &[BlockHash]) -> Respo
697697
/// [`BlockchainReadRequest::TxsInBlock`]
698698
fn txs_in_block(
699699
db: &BlockchainDatabase,
700-
block_hash: [u8; 32],
700+
block_hash: BlockHash,
701701
missing_txs: Vec<u64>,
702702
) -> ResponseResult {
703703
let tx_ro = db.fjall.snapshot();

0 commit comments

Comments
 (0)