Skip to content

Commit a947442

Browse files
committed
Tweak comment
1 parent 3fc196f commit a947442

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

beacon_node/beacon_chain/src/attester_cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ impl AttesterCache {
325325
return Ok(value);
326326
}
327327

328-
// As the function name suggests, this code path is meant to load AND cache the state.
328+
// We use `cache_state = true` here because if we are attesting to the state it's likely
329+
// to be recent and useful for other things.
329330
let mut state: BeaconState<T::EthSpec> = chain
330331
.get_state(&state_root, None, true)?
331332
.ok_or(Error::MissingBeaconState(state_root))?;

0 commit comments

Comments
 (0)