mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Update trie-db version to 0.28.0 (#1522)
This PR updates: - trie-db from 0.27.1 to 0.28.0 - trie-bench from 0.37.0 to 0.38.0 (deb-dependency) While at it, also adapts the recorder to take into account the newly added `TrieAccess::InlineValue`. Needed by: - https://github.com/paritytech/polkadot-sdk/pull/1153 @paritytech/subxt-team --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -379,6 +379,17 @@ impl<H: Hasher, I: DerefMut<Target = RecorderInner<H::Out>>> trie_db::TrieRecord
|
||||
// that the value doesn't exist in the trie.
|
||||
self.update_recorded_keys(full_key, RecordedForKey::Value);
|
||||
},
|
||||
TrieAccess::InlineValue { full_key } => {
|
||||
tracing::trace!(
|
||||
target: LOG_TARGET,
|
||||
key = ?sp_core::hexdisplay::HexDisplay::from(&full_key),
|
||||
"Recorded inline value access for key",
|
||||
);
|
||||
|
||||
// A value was accessed that is stored inline a node and we recorded all trie nodes
|
||||
// to access this value.
|
||||
self.update_recorded_keys(full_key, RecordedForKey::Value);
|
||||
},
|
||||
};
|
||||
|
||||
self.encoded_size_estimation.fetch_add(encoded_size_update, Ordering::Relaxed);
|
||||
|
||||
Reference in New Issue
Block a user