Skip to content

Commit

Permalink
dag: fix error returned
Browse files Browse the repository at this point in the history
  • Loading branch information
liamzebedee committed Jul 28, 2024
1 parent c38adb3 commit 6b402f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/nakamoto/blockdag_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (dag *BlockDAG) GetBlockByHash(hash [32]byte) (*Block, error) {

return &block, nil
} else {
return nil, fmt.Errorf("Block not found.")
return nil, ErrBlockNotFound
}
}

Expand Down

0 comments on commit 6b402f2

Please sign in to comment.