Skip to content
This repository was archived by the owner on Jul 15, 2018. It is now read-only.

tmhash#210

Merged
ebuchman merged 2 commits intodevelopfrom
bucky/tmhash
May 22, 2018
Merged

tmhash#210
ebuchman merged 2 commits intodevelopfrom
bucky/tmhash

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented May 22, 2018

@zmanian @liamsi @jaekwon lets standardize around this ?

Ref #152 and cosmos/iavl#38

@ebuchman ebuchman requested a review from melekes as a code owner May 22, 2018 00:10
@codecov-io
Copy link

codecov-io commented May 22, 2018

Codecov Report

Merging #210 into develop will decrease coverage by <.01%.
The diff coverage is 64.7%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #210      +/-   ##
===========================================
- Coverage    58.99%   58.99%   -0.01%     
===========================================
  Files           58       59       +1     
  Lines         3673     3687      +14     
===========================================
+ Hits          2167     2175       +8     
- Misses        1354     1360       +6     
  Partials       152      152
Impacted Files Coverage Δ
merkle/simple_map.go 71.79% <100%> (ø) ⬆️
merkle/simple_tree.go 58.97% <100%> (ø) ⬆️
merkle/tmhash/hash.go 57.14% <57.14%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fb515f...d72de8b. Read the comment docs.

@liamsi
Copy link

liamsi commented May 22, 2018

LGTM! Wouldn't it make more sense to have this code in go-crypto instead of tmlibs though?

@ebuchman
Copy link
Contributor Author

ebuchman commented May 22, 2018

Wouldn't it make more sense to have this code in go-crypto instead of tmlibs though?

Heh, fun question. We have an ongoing discussion about how to conceptualize/consolidate our repos - tendermint/tendermint#1309

Are you proposing that all of merkle move to go-crypto or just the new tmhash ?

I wouldn't be opposed to moving all of merkle, but maybe then we'd want to move iavl as well ?!

@liamsi
Copy link

liamsi commented May 22, 2018

I wouldn't be opposed to moving all of merkle, but maybe then we'd want to move iavl as well ?!

I think everything which is crypto and used in more then a single repo (hashing definitely is) should be in go-crypto, everything which is specific to dealing with an IAVL tree (like persisting in db, snapshots, the balancing algo and a few more things I forgot (?)), should stay in a separate IAVL repo (or at least package).

@ebuchman
Copy link
Contributor Author

Cool. Let's get these fixes to the hasher and the merkle lib done in tmlibs, and then we can move the merkle package over to go-crypto.

When all said and done, this repo should be left with only: cli, common, db, log

@ebuchman
Copy link
Contributor Author

Actually there's already breaking stuff on develop here and I want to update tendermint to use this first. Rather than muck about with branches here let's just move it to go-crypto now: tendermint/go-crypto#105

@ebuchman ebuchman deleted the bucky/tmhash branch May 22, 2018 16:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants