Skip to content

Commit

Permalink
Go vet hates go
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopeereboom committed Nov 5, 2024
1 parent dbea1d5 commit dac52c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/tbcd/level/level.go
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ func (l *ldb) BlockByHash(ctx context.Context, hash *chainhash.Hash) (*btcutil.B
eb, err := bDB.Get(hash[:])
if err != nil {
if errors.Is(err, leveldb.ErrNotFound) {
return nil, database.BlockNotFoundError{*hash}
return nil, database.BlockNotFoundError{Hash: *hash}
}
return nil, fmt.Errorf("block get: %w", err)
}
Expand Down

0 comments on commit dac52c3

Please sign in to comment.