Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6e934f

Browse filesBrowse files
authored
Merge pull request #992 from codablock/update-comment
utils: update comment in node.go's Hash()
2 parents f7c30f5 + 0eddb86 commit a6e934f
Copy full SHA for a6e934f

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎utils/merkletrie/filesystem/node.go

Copy file name to clipboardExpand all lines: utils/merkletrie/filesystem/node.go
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ func NewRootNode(
5050
// difftree algorithm will detect changes in the contents of files and also in
5151
// their mode.
5252
//
53+
// Please note that the hash is calculated on first invocation of Hash(),
54+
// meaning that it will not update when the underlying file changes
55+
// between invocations.
56+
//
5357
// The hash of a directory is always a 24-bytes slice of zero values
5458
func (n *node) Hash() []byte {
5559
if n.hash == nil {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.