Skip to content

lib/trie: add Version type#2736

Merged
qdm12 merged 2 commits intodevelopmentfrom
qdm12/trie/version-type
Aug 12, 2022
Merged

lib/trie: add Version type#2736
qdm12 merged 2 commits intodevelopmentfrom
qdm12/trie/version-type

Conversation

@qdm12
Copy link
Copy Markdown
Contributor

@qdm12 qdm12 commented Aug 9, 2022

Changes

  • String() method
  • ParseVersion function

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

#2418

Primary Reviewer

@jimjbrettj

Comment thread lib/trie/version.go
Comment on lines +17 to +21
// TODO set to iota once CI passes
V0 Version = 1
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.

This will be done in a subsequent PR.
It is used to ensure we set versions everywhere and do not leave it to its default value 0.

Comment thread lib/trie/version.go Outdated
@qdm12 qdm12 force-pushed the qdm12/trie/version-type branch 2 times, most recently from 4a087ed to 192a875 Compare August 9, 2022 15:25
@qdm12 qdm12 marked this pull request as ready for review August 9, 2022 15:25
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 9, 2022

Codecov Report

Merging #2736 (ddf17e3) into development (d3e0432) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           development    #2736      +/-   ##
===============================================
- Coverage        63.03%   63.00%   -0.04%     
===============================================
  Files              212      213       +1     
  Lines            27038    27051      +13     
===============================================
  Hits             17043    17043              
- Misses            8443     8460      +17     
+ Partials          1552     1548       -4     

- `String()` method
- `ParseVersion` function
- Unit tests
@qdm12 qdm12 force-pushed the qdm12/trie/version-type branch from 192a875 to eb5725b Compare August 9, 2022 16:01
Comment thread lib/trie/version.go Outdated
@qdm12 qdm12 merged commit 2e57b1e into development Aug 12, 2022
@qdm12 qdm12 deleted the qdm12/trie/version-type branch August 12, 2022 14:11
rrtti pushed a commit to polkadot-fellows/seeding that referenced this pull request Sep 29, 2022
I am Quentin Mc Gaw, a software engineer working the Go Polkadot host **Gossamer**.
I have been working full time on Gossamer since October 2021, mostly on the state trie and storage.
I have also made a [few minor pull requests](https://github.com/w3f/polkadot-spec/pulls?q=is%3Apr+is%3Aclosed+author%3Aqdm12) to the Polkadot specification repository.

I am requesting to join the Fellowship at rank 1.

## Main contributions

### Gossamer

- Fix memory leaks
  - Trie encoding buffer pools usage fixed [#2009](ChainSafe/gossamer#2009)
  - Fix state map of tries memory leak [#2286](ChainSafe/gossamer#2286)
  - Fix sync benchmark [#2234](ChainSafe/gossamer#2234)
- Trie proof fixes ([#2604](ChainSafe/gossamer#2604), [#2661](ChainSafe/gossamer#2661))
- Fix end to end tests orchestration ([#2470](ChainSafe/gossamer#2470), [#2452](ChainSafe/gossamer#2452), [#2385](ChainSafe/gossamer#2385), [#2370](ChainSafe/gossamer#2370))
- State trie statistics ([#2378](ChainSafe/gossamer#2378), [#2310](ChainSafe/gossamer#2310), [#2272](ChainSafe/gossamer#2272))
- State trie fixes and improvements
  - Only deep copy nodes when mutation is certain [#2352](ChainSafe/gossamer#2352) and [#2223](ChainSafe/gossamer#2223)
  - Only deep copy necessary fields of a node [#2384](ChainSafe/gossamer#2384)
  - Use Merkle values for database keys instead of always hash [#2725](ChainSafe/gossamer#2725)
  - Opportunistic parallel Merkle value commputing [#2081](ChainSafe/gossamer#2081)
- Grandpa capped number of tracked messages ([#2490](ChainSafe/gossamer#2490), [#2485](ChainSafe/gossamer#2485))
- Add pprof HTTP service for profiling [#1991](ChainSafe/gossamer#1991)

Ongoing work:

- State trie lazy loading and caching
- State trie v1 support ([#2736](ChainSafe/gossamer#2736), [#2747](ChainSafe/gossamer#2747), [#2687](ChainSafe/gossamer#2687), [#2686](ChainSafe/gossamer#2686), [#2685](ChainSafe/gossamer#2685), [#2673](ChainSafe/gossamer#2673), [#2611](ChainSafe/gossamer#2611), [#2530](ChainSafe/gossamer#2530))

### Polkadot specification

➡️ [Pull requests from qdm12](https://github.com/w3f/polkadot-spec/pulls?q=is%3Apr+is%3Aclosed+author%3Aqdm12)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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