Skip to content

Commit

Permalink
add comment on maximum number of keys
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Nov 26, 2024
1 parent 518d49a commit d6d0dda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transaction-view/src/resolved_transaction_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ pub struct ResolvedTransactionView<D: TransactionData> {
/// The resolved address lookups.
resolved_addresses: Option<LoadedAddresses>,
/// A cache for whether an address is writable.
// Sanitized transactions are guaranteed to have a maximum of 256 keys,
// because account indexing is done with a u8.
writable_cache: [bool; 256],
}

Expand Down

0 comments on commit d6d0dda

Please sign in to comment.