Skip to content

Commit

Permalink
chore(bolt-sidecar): document function
Browse files Browse the repository at this point in the history
Co-authored-by: nicolas <[email protected]>
  • Loading branch information
estensen and merklefruit committed Nov 29, 2024
1 parent 6220672 commit 14fcbf1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bolt-sidecar/src/state/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,15 @@ pub struct StateUpdate {
pub block_number: u64,
}

// From previous preconfirmations requests retrieve
// - the nonce difference from the account state.
// - the balance difference from the account state.
// - the highest slot number for which the user has requested a preconfirmation.
//
// If the templates do not exist, or this is the first request for this sender,
// its diffs will be zero.
/// Calculate aggregated diffs for an account, given some block templates.
///
/// From previous preconfirmations requests retrieve
/// - the nonce difference from the account state.
/// - the balance difference from the account state.
/// - the highest slot number for which the user has requested a preconfirmation.
///
/// If the templates do not exist, or this is the first request for this sender,
/// its diffs will be zero.
fn compute_diffs(
block_templates: &HashMap<u64, BlockTemplate>,
sender: &Address,
Expand Down

0 comments on commit 14fcbf1

Please sign in to comment.