Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 3ce5988

Browse files
committed
Minor doc tweaks
1 parent 0f80b7b commit 3ce5988

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ethcore/src/state/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ impl State {
538538
let mut addresses = self.cache.borrow_mut();
539539
trace!("Committing cache {:?} entries", addresses.len());
540540
for (address, a) in addresses.drain().filter(|&(_, ref a)| a.state == AccountState::Committed || a.state == AccountState::CleanFresh) {
541-
self.db.cache_account(address, a.account, a.state == AccountState::Committed);
541+
self.db.add_to_account_cache(address, a.account, a.state == AccountState::Committed);
542542
}
543543
}
544544

ethcore/src/state_db.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ struct BlockChanges {
6969
}
7070

7171
/// State database abstraction.
72-
/// Manages shared global state cache.
72+
/// Manages shared global state cache which reflects the canonical
73+
/// state as it is on the disk. All the entries in the cache are clean.
7374
/// A clone of `StateDB` may be created as canonical or not.
74-
/// For canonical clones cache changes are accumulated and applied
75-
/// on commit.
76-
/// For non-canonical clones cache is cleared on commit.
75+
/// For canonical clones local cache is accumulated and applied
76+
/// in `sync_cache`
77+
/// For non-canonical clones local cache is dropped.
7778
///
7879
/// Global cache propagation.
7980
/// After a `State` object has been committed to the trie it

0 commit comments

Comments
 (0)