Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing zk tree usage #1529

Merged
merged 7 commits into from
Jun 21, 2022
Merged

removing zk tree usage #1529

merged 7 commits into from
Jun 21, 2022

Conversation

mikiquantum
Copy link
Contributor

@mikiquantum mikiquantum commented May 26, 2022

closes #1519

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #1529 (58db94a) into v1.4.0 (9da4fb3) will increase coverage by 24.65%.
The diff coverage is 67.56%.

@@             Coverage Diff             @@
##           v1.4.0    #1529       +/-   ##
===========================================
+ Coverage   40.79%   65.44%   +24.65%     
===========================================
  Files           9      131      +122     
  Lines         201     9858     +9657     
===========================================
+ Hits           82     6452     +6370     
- Misses        112     2820     +2708     
- Partials        7      586      +579     
Impacted Files Coverage Δ
documents/service.go 30.34% <ø> (ø)
nft/jobs.go 2.34% <0.00%> (ø)
nft/service.go 25.82% <40.00%> (ø)
documents/coredocument.go 67.88% <81.81%> (ø)
documents/tree.go 74.54% <100.00%> (ø)
nft/chain_api.go 22.76% <100.00%> (ø)
http/v2/nfts_api.go 92.15% <0.00%> (ø)
documents/repository.go 92.68% <0.00%> (ø)
documents/anchor_job.go 25.00% <0.00%> (ø)
utils/stringutils/utils.go 81.48% <0.00%> (ø)
... and 118 more

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 9da4fb3...58db94a. Read the comment docs.

@mikiquantum mikiquantum marked this pull request as ready for review June 16, 2022 00:06
@mikiquantum mikiquantum changed the title wip: removing zk tree usage removing zk tree usage Jun 16, 2022
Copy link
Contributor

@cdamian cdamian left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@NunoAlexandre NunoAlexandre left a comment

Choose a reason for hiding this comment

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

LGTM but admittedly not the best reviewer here.

@@ -280,7 +281,7 @@ func Test_getBundledHash(t *testing.T) {
byteSliceToByteArray32(common.FromHex("0xed58f4a0d0c76770c81d2b1cc035413edebb567f5c006160596dc73b9297a9cc")),
}

bh := common.FromHex("0xee49e1ca6aa1204cfb571094ce14ab254e5185005cbee3f26af9afd3140ac12d")
bh := common.FromHex("0xbbf0c526070f3b823eb995aa31f2ac9635532a0b010ff27183be7bf25b3f002a")

Choose a reason for hiding this comment

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

How is this value generated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we changed from using keccak to using blake2b the hash changed. In any case, this code most likely will not be used once we move all pools to the chain.

@@ -104,17 +105,16 @@ func AssetDir(name string) ([]string, error) {
}

type _bintree_t struct {
Func func() ([]byte, error)
Func func() ([]byte, error)

Choose a reason for hiding this comment

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

Suggested change
Func func() ([]byte, error)
Func func() ([]byte, error)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is autogenerated code, and rather not lint it manually.

@mikiquantum mikiquantum merged commit 9b00732 into v1.4.0 Jun 21, 2022
@mikiquantum mikiquantum deleted the rm/zk_tree branch June 21, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants