mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-03 18:07:24 +00:00
Transactional updates in the state-db (#1616)
This commit is contained in:
committed by
Gav Wood
parent
f98f9ac58a
commit
742f030ddd
@@ -46,6 +46,7 @@ impl HashDb for TestDb {
|
||||
impl TestDb {
|
||||
pub fn commit(&mut self, commit: &CommitSet<H256>) {
|
||||
self.data.extend(commit.data.inserted.iter().cloned());
|
||||
self.meta.extend(commit.meta.inserted.iter().cloned());
|
||||
for k in commit.data.deleted.iter() {
|
||||
self.data.remove(k);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user