Skip to content

Remove depth parameter from MapHasher.HashLeaf#769

Merged
gdbelvin merged 2 commits intogoogle:masterfrom
gdbelvin:refactor/hasher
Aug 2, 2017
Merged

Remove depth parameter from MapHasher.HashLeaf#769
gdbelvin merged 2 commits intogoogle:masterfrom
gdbelvin:refactor/hasher

Conversation

@gdbelvin
Copy link
Copy Markdown
Contributor

@gdbelvin gdbelvin commented Jul 31, 2017

In Maps, leaves are always stored at hasher.BitLen()
This PR removes the depth parameter from HashLeaf for clarity.

@gdbelvin gdbelvin changed the title Have hashers operate on depth rather than height Remove depth parameter from MapHasher.HashLeaf Aug 2, 2017
@gdbelvin gdbelvin requested a review from Martin2112 August 2, 2017 13:19
return nil, status.Errorf(codes.InvalidArgument,
"len(%x): %v, want %v", l.Index, got, want)
}
// TODO(gbelvin) use LeafHash rather than computing here. #423
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That todo could still be relevant?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readded

@gdbelvin gdbelvin merged commit 8842731 into google:master Aug 2, 2017
@gdbelvin gdbelvin deleted the refactor/hasher branch August 2, 2017 15:20
@gdbelvin gdbelvin mentioned this pull request Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants