Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/database/interface/src/async_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<T: DatabaseAsync> Database for WrapDatabaseAsync<T> {

/// Gets storage value of account by its id.
///
/// Default implementation is to call [`DatabaseRef::storage_ref`] method.
/// Wraps [`DatabaseAsync::storage_by_account_id_async`] in a blocking call.
#[inline]
fn storage_by_account_id(
&mut self,
Expand Down
2 changes: 1 addition & 1 deletion crates/database/src/states/bundle_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl BundleRetention {
///
/// This is needed to decide if there were any changes to the account.
///
/// Reverts and created when TransitionState is applied to BundleState.
/// Changes are applied and reverts are created when TransitionState is applied to BundleState.
///
/// And can be used to revert BundleState to the state before transition.
#[derive(Default, Clone, Debug, PartialEq, Eq)]
Expand Down
6 changes: 3 additions & 3 deletions crates/database/src/states/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ pub struct State<DB> {
///
/// Build reverts and state that gets applied to the state.
pub transition_state: Option<TransitionState>,
/// After block is finishes we merge those changes inside bundle
/// After block finishes we merge those changes inside bundle
///
/// Bundle is used to update database and create changesets.
///
/// Bundle state can be set on initialization if we want to use preloaded bundle.
pub bundle_state: BundleState,
/// Addition layer that is going to be used to fetched values before fetching values
/// Additional layer that is going to be used to fetch values before fetching values
/// from database
///
/// Bundle is the main output of the state execution and this allows setting previous bundle
Expand Down Expand Up @@ -192,7 +192,7 @@ impl<DB: Database> State<DB> {
}

// TODO : Make cache aware of transitions dropping by having global transition counter.
/// Takess the [`BundleState`] changeset from the [`State`], replacing it
/// Takes the [`BundleState`] changeset from the [`State`], replacing it
/// with an empty one.
///
/// This will not apply any pending [`TransitionState`].
Expand Down
Loading