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

switch to single subtrie crate dep #1

Merged
merged 85 commits into from
Apr 2, 2024
Merged

switch to single subtrie crate dep #1

merged 85 commits into from
Apr 2, 2024

Commits on Aug 10, 2023

  1. Adopt the new HashDB API

    arkpar committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    91681c8 View commit details
    Browse the repository at this point in the history
  2. Fixed a test

    arkpar committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    6f097f6 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2023

  1. Fixes

    arkpar committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    d9ac5aa View commit details
    Browse the repository at this point in the history
  2. fmt

    arkpar committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    00b4fa9 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. Configuration menu
    Copy the full SHA
    c4be095 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    719aa79 View commit details
    Browse the repository at this point in the history
  3. Fixed fuzzing tests

    arkpar committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    bd9e3d1 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Removed missing_location

    arkpar committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    1cf9d43 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. trie-db: Fetch the closest merkle value (paritytech#199)

    * trie-db: Add `get_closest_merkle_value` to Trie trait
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Extract the merkle value
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/test: Check merkle value on update key
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * Update trie-db/src/lookup.rs
    
    Co-authored-by: Arkadiy Paronyan <[email protected]>
    
    * Update trie-db/src/lookup.rs
    
    Co-authored-by: Arkadiy Paronyan <[email protected]>
    
    * trie-db: Rename look_up_merkle_without_cache function
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Check closest descendant of partial keys
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Adjust lookups for partial keys
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Check non-existent key and branch nodes
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Ensure recording of `NonExisting` for leaves
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Ensure the merkle descedent hash is returned
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Extend tests with branch nodes and single key db
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Check trie modification and merkle propagation
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Use `PrefixedKey` instead of `HashKey`
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Test extra keys for `test_merkle_value`
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Return the extension node hash
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Use `starts_with` method instead of common prefix
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Return no merkle value on empty node
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Ensure inline nodes
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Check empty trie with empty keys
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db/tests: Add extra keys to check
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Use `starts_with` for extension nodes
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Rename merkle lookups to lookup_first_descendant
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Return inline hashes properly
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Implement starts_with_slice for NibbleVec
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Use cache for finding first descendent hash
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Introduce caching for descedent node access
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Use rstd::vec::Vec
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Forward merkle value for fatdb and sectriedb
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Rename `get_closest_merkle_value` to `lookup_first_descendant`
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Introduce MerkleValue to return inline nodes and hashes
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Remove inner function for merkle value lookups
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * Update trie-db/src/lib.rs
    
    Co-authored-by: Bastian Köcher <[email protected]>
    
    * Update trie-db/src/lib.rs
    
    Co-authored-by: Bastian Köcher <[email protected]>
    
    * Apply fmt
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    ---------
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    Co-authored-by: Arkadiy Paronyan <[email protected]>
    Co-authored-by: Bastian Köcher <[email protected]>
    3 people authored Sep 11, 2023
    Configuration menu
    Copy the full SHA
    08a2305 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Make trie_nodes_recorded_for_key work for inline values (paritytech…

    …#194)
    
    * Make `trie_nodes_recorded_for_key` work for inline values
    
    `trie_nodes_recorded_for_key` was not working properly for inline values. It would always return `RecordedForKey::None`
    while we actually have accessed and recorded all the trie nodes for the value. The pr introduces
    `TrieAccess::InlineValue` to communicate this access to the recorder properly to make it then return
    `RecordedForKey::Value`.
    
    * FMT
    
    * Add soe comments
    bkchr authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    61c21a5 View commit details
    Browse the repository at this point in the history
  2. chore: Release trie-db 0.28.0 (paritytech#200)

    * Update changelog
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * trie-db: Bump version to 0.28
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * Update trie-db across workspace
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    * Update trie-bench to 0.38.0
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    
    ---------
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    0b9bede View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Fix recorder for NonExisting keys (paritytech#202)

    We handle `NonExisting` keys as if we have recorded the value. The reason behind this is that we have recorded all the
    trie nodes to proof that the key doesn't exist in the `trie`. So, next time we want to access the key we can use the
    `cache` (if present) and do not net to iterate over the trie nodes again.
    bkchr authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    66774b3 View commit details
    Browse the repository at this point in the history
  2. Bump actions/checkout from 3 to 4 (paritytech#201)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    bc79f51 View commit details
    Browse the repository at this point in the history
  3. Update hex-literal requirement from 0.3 to 0.4 (paritytech#191)

    Updates the requirements on [hex-literal](https://github.com/RustCrypto/utils) to permit the latest version.
    - [Release notes](https://github.com/RustCrypto/utils/releases)
    - [Commits](RustCrypto/utils@hex-literal-v0.3.0...hex-literal-v0.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: hex-literal
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    4d05c64 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Comments

    arkpar committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    bac0cbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ada1da6 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2023

  1. totally remove hashbrown dep (paritytech#203)

    * totally remove hashbrown dep
    
    * fix no_std
    cheme authored Oct 1, 2023
    Configuration menu
    Copy the full SHA
    d0b9166 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Update hashbrown requirement from 0.13.2 to 0.14.1 (paritytech#204)

    Updates the requirements on [hashbrown](https://github.com/rust-lang/hashbrown) to permit the latest version.
    - [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md)
    - [Commits](rust-lang/hashbrown@v0.13.2...v0.14.1)
    
    ---
    updated-dependencies:
    - dependency-name: hashbrown
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    6eb4b88 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    5a9c3b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. Tests and fixes

    arkpar committed Nov 26, 2023
    Configuration menu
    Copy the full SHA
    0ff5025 View commit details
    Browse the repository at this point in the history
  2. fmt

    arkpar committed Nov 26, 2023
    Configuration menu
    Copy the full SHA
    d00240e View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Test fixes

    arkpar committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    81446ab View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2023

  1. Update criterion requirement from 0.4.0 to 0.5.1 (paritytech#193)

    Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
    - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
    - [Commits](bheisler/criterion.rs@0.4.0...0.5.1)
    
    ---
    updated-dependencies:
    - dependency-name: criterion
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 2, 2023
    Configuration menu
    Copy the full SHA
    d3e6377 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Implements DoubleEndedIterator for trie iterators (paritytech#208)

    * double ended iterator implementation
    snowmead authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    2edd0a1 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. api for child changeset

    cheme committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    599b0f1 View commit details
    Browse the repository at this point in the history
  2. attach in triedbmut node

    cheme committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    314179d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    269ef62 View commit details
    Browse the repository at this point in the history
  4. fix test and assert

    cheme committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    675ae01 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration menu
    Copy the full SHA
    87d60c8 View commit details
    Browse the repository at this point in the history
  2. init a test

    cheme committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    e031dbf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7faf394 View commit details
    Browse the repository at this point in the history
  4. better

    cheme committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    557b52d View commit details
    Browse the repository at this point in the history
  5. memtrie issue

    cheme committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    ed42db6 View commit details
    Browse the repository at this point in the history
  6. change children location

    cheme committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    8d334d2 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Configuration menu
    Copy the full SHA
    a244144 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5bc93c View commit details
    Browse the repository at this point in the history
  3. share more code in test

    cheme committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    caf67f3 View commit details
    Browse the repository at this point in the history
  4. extract in fn

    cheme committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    de3bc22 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8edcc92 View commit details
    Browse the repository at this point in the history
  6. ok

    cheme committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1f9b8ed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    270aa81 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d858765 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. Configuration menu
    Copy the full SHA
    b5076f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39e81cb View commit details
    Browse the repository at this point in the history
  3. no_std

    cheme committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    04e7a18 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Configuration menu
    Copy the full SHA
    49bc5a7 View commit details
    Browse the repository at this point in the history
  2. fix

    cheme committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    956ed99 View commit details
    Browse the repository at this point in the history
  3. crumb on layout

    cheme committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    37a0555 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac8a09f View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. minor changes

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    bc76a21 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    542829a View commit details
    Browse the repository at this point in the history
  3. fix

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    5df1cd8 View commit details
    Browse the repository at this point in the history
  4. avoid using child trie name

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    aeec4fa View commit details
    Browse the repository at this point in the history
  5. more renamings

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    f0d3662 View commit details
    Browse the repository at this point in the history
  6. rename

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    e83c8f0 View commit details
    Browse the repository at this point in the history
  7. HashDB to NodeDB

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    367c0e7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c7547c6 View commit details
    Browse the repository at this point in the history
  9. use removed key from node only

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    1a969ad View commit details
    Browse the repository at this point in the history
  10. remove ChangesetNodeRef

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    6cc8363 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    28a5476 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b6e4393 View commit details
    Browse the repository at this point in the history
  13. fix

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    93433ca View commit details
    Browse the repository at this point in the history
  14. no_std

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    16f1cd5 View commit details
    Browse the repository at this point in the history
  15. missing file write

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    04a1ee4 View commit details
    Browse the repository at this point in the history
  16. don't check memorydb

    cheme committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    5e26628 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. Configuration menu
    Copy the full SHA
    554187b View commit details
    Browse the repository at this point in the history
  2. fix

    cheme committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    10cc948 View commit details
    Browse the repository at this point in the history
  3. fmt

    cheme committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    024e964 View commit details
    Browse the repository at this point in the history
  4. fix

    cheme committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    d176e42 View commit details
    Browse the repository at this point in the history
  5. ci

    cheme committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    7a575ef View commit details
    Browse the repository at this point in the history
  6. add testutils when using bench

    cheme committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    fca9577 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    26e462d View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. store child index in node plan

    cheme committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    8801370 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. Configuration menu
    Copy the full SHA
    bb561a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Allow non send sync db

    cheme committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    e911ebc View commit details
    Browse the repository at this point in the history
  2. Revert "Allow non send sync db"

    This reverts commit e911ebc.
    cheme committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    bef6e0f View commit details
    Browse the repository at this point in the history
  3. rem ref to TrieMut

    cheme committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    04ac7a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. Configuration menu
    Copy the full SHA
    e4b29e4 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Configuration menu
    Copy the full SHA
    1b8cced View commit details
    Browse the repository at this point in the history
  2. Revert "method to visit changeset to avoid apply_to cost in sc-client…

    …-db"
    
    This reverts commit 1b8cced.
    cheme committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    8ad4ee8 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. empty tree change set

    cheme committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    d352340 View commit details
    Browse the repository at this point in the history
  2. better naming

    cheme committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    8f33c2c View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    8e2852f View commit details
    Browse the repository at this point in the history
  2. fix doctests

    cheme committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    71bcaf8 View commit details
    Browse the repository at this point in the history
  3. ci

    cheme committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    af1b48c View commit details
    Browse the repository at this point in the history