Skip to content

Commit

Permalink
Prepare trie-db 0.24.0 release (#163)
Browse files Browse the repository at this point in the history
* Prepare trie-db 0.24.0 release

* fix remaining version and update format fuzzer.

Co-authored-by: Emeric Chevalier <[email protected]>
  • Loading branch information
bkchr and cheme authored Aug 4, 2022
1 parent aff1cba commit 02b030a
Show file tree
Hide file tree
Showing 21 changed files with 114 additions and 135 deletions.
3 changes: 3 additions & 0 deletions test-support/reference-trie/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog].

## [Unreleased]

## [0.26.0] - 2022-08-04
- Update trie-db to 0.24.0. [#163](https://github.com/paritytech/trie/pull/163)

## [0.25.0] - 2022-02-04
- Updated `parity-scale-codec` to 3.0. [#150](https://github.com/paritytech/trie/pull/150)

Expand Down
4 changes: 2 additions & 2 deletions test-support/reference-trie/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reference-trie"
version = "0.25.0"
version = "0.26.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Simple reference trie format"
repository = "https://github.com/paritytech/trie/"
Expand All @@ -11,7 +11,7 @@ edition = "2018"
hash-db = { path = "../../hash-db" , version = "0.15.2"}
hash256-std-hasher = { path = "../../hash256-std-hasher", version = "0.15.2" }
keccak-hasher = { path = "../keccak-hasher", version = "0.15.3" }
trie-db = { path = "../../trie-db", default-features = false, version = "0.23.0" }
trie-db = { path = "../../trie-db", default-features = false, version = "0.24.0" }
trie-root = { path = "../../trie-root", default-features = false, version = "0.17.0" }
parity-scale-codec = { version = "3.0.0", features = ["derive"] }
hashbrown = { version = "0.12.0", default-features = false, features = ["ahash"] }
Expand Down
3 changes: 3 additions & 0 deletions test-support/trie-bench/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog].

## [Unreleased]

## [0.31.0] - 2022-08-04
- Update trie-db to 0.24.0. [#163](https://github.com/paritytech/trie/pull/163)

## [0.30.0] - 2022-02-04
- Updated `memory-db` to 0.29. [#150](https://github.com/paritytech/trie/pull/150)

Expand Down
4 changes: 2 additions & 2 deletions test-support/trie-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "trie-bench"
description = "Standard benchmarking suite for tries"
version = "0.30.0"
version = "0.31.0"
authors = ["Parity Technologies <[email protected]>"]
repository = "https://github.com/paritytech/trie/"
license = "Apache-2.0"
Expand All @@ -13,6 +13,6 @@ trie-standardmap = { path = "../trie-standardmap", version = "0.15.2" }
hash-db = { path = "../../hash-db" , version = "0.15.2"}
memory-db = { path = "../../memory-db", version = "0.29.0" }
trie-root = { path = "../../trie-root", version = "0.17.0" }
trie-db = { path = "../../trie-db", version = "0.23.0" }
trie-db = { path = "../../trie-db", version = "0.24.0" }
criterion = "0.3.3"
parity-scale-codec = "3.0.0"
9 changes: 9 additions & 0 deletions trie-db/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]

## [0.24.0] - 2022-08-04
- Do not check for root in `TrieDB` and `TrieDBMut` constructors: [#155](https://github.com/paritytech/trie/pull/155)

To get back the old behavior you have to add the following code:
Expand All @@ -13,6 +15,13 @@ The format is based on [Keep a Changelog].
return Err(InvalidStateRoot(root))
}
```
- Introduce trie level cache & recorder: [#157](https://github.com/paritytech/trie/pull/157)

This pull requests introduced a cache that is directly baked into the trie-db. This
cache can be used to speed up accessing data in the trie. Alongside the cache, the recorder
was also made a first class citizen of the trie. The pull requests introduces quite a lot of changes
to the trie api. `TrieDB` and `TrieDBMut` are now for example now using a builder pattern. For more information
see the pr.

## [0.23.1] - 2022-02-04
- Updated `hashbrown` to 0.12. [#150](https://github.com/paritytech/trie/pull/150)
Expand Down
2 changes: 1 addition & 1 deletion trie-db/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trie-db"
version = "0.23.1"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
description = "Merkle-Patricia Trie generic over key hasher and node encoding"
repository = "https://github.com/paritytech/trie"
Expand Down
4 changes: 2 additions & 2 deletions trie-db/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cargo-fuzz = true

[dependencies]
hash-db = { path = "../../hash-db", version = "0.15.2" }
memory-db = { path = "../../memory-db", version = "0.26.0" }
reference-trie = { path = "../../test-support/reference-trie", version = "0.24.0" }
memory-db = { path = "../../memory-db", version = "0.29.0" }
reference-trie = { path = "../../test-support/reference-trie", version = "0.26.0" }
keccak-hasher = { path = "../../test-support/keccak-hasher", version = "0.15.2" }

[dependencies.trie-db]
Expand Down
2 changes: 1 addition & 1 deletion trie-db/fuzz/fuzz_targets/no_ext_insert.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_main]

use trie_db_fuzz::fuzz_that_no_extension_insert;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_that_no_extension_insert;

fuzz_target!(|data: &[u8]| {
// fuzzed code goes here
Expand Down
2 changes: 1 addition & 1 deletion trie-db/fuzz/fuzz_targets/no_ext_insert_rem.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_main]

use trie_db_fuzz::fuzz_that_no_extension_insert_remove;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_that_no_extension_insert_remove;

fuzz_target!(|data: &[u8]| {
// fuzzed code goes here
Expand Down
2 changes: 1 addition & 1 deletion trie-db/fuzz/fuzz_targets/prefix_iter.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_main]

use trie_db_fuzz::fuzz_prefix_iter;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_prefix_iter;

fuzz_target!(|data: &[u8]| {
fuzz_prefix_iter::<reference_trie::NoExtensionLayout>(data);
Expand Down
2 changes: 1 addition & 1 deletion trie-db/fuzz/fuzz_targets/seek_iter.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_main]

use trie_db_fuzz::fuzz_seek_iter;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_seek_iter;

fuzz_target!(|data: &[u8]| {
fuzz_seek_iter::<reference_trie::NoExtensionLayout>(data);
Expand Down
1 change: 0 additions & 1 deletion trie-db/fuzz/fuzz_targets/trie_proof_invalid.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#![no_main]

use libfuzzer_sys::fuzz_target;
Expand Down
1 change: 0 additions & 1 deletion trie-db/fuzz/fuzz_targets/trie_proof_valid.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#![no_main]

use libfuzzer_sys::fuzz_target;
Expand Down
3 changes: 1 addition & 2 deletions trie-db/fuzz/fuzz_targets/trie_root.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

#![no_main]

use trie_db_fuzz::fuzz_that_reference_trie_root;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_that_reference_trie_root;

fuzz_target!(|data: &[u8]| {
fuzz_that_reference_trie_root::<reference_trie::NoExtensionLayout>(data);
Expand Down
3 changes: 1 addition & 2 deletions trie-db/fuzz/fuzz_targets/trie_root_fix_len.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

#![no_main]

use trie_db_fuzz::fuzz_that_reference_trie_root_fix_length;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_that_reference_trie_root_fix_length;

fuzz_target!(|data: &[u8]| {
fuzz_that_reference_trie_root_fix_length::<reference_trie::NoExtensionLayout>(data);
Expand Down
3 changes: 1 addition & 2 deletions trie-db/fuzz/fuzz_targets/trie_root_new.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

#![no_main]

use trie_db_fuzz::fuzz_that_compare_implementations;
use libfuzzer_sys::fuzz_target;
use trie_db_fuzz::fuzz_that_compare_implementations;

fuzz_target!(|data: &[u8]| {
// fuzzed code goes here
Expand Down
Loading

0 comments on commit 02b030a

Please sign in to comment.