We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fc196f commit a947442Copy full SHA for a947442
beacon_node/beacon_chain/src/attester_cache.rs
@@ -325,7 +325,8 @@ impl AttesterCache {
325
return Ok(value);
326
}
327
328
- // As the function name suggests, this code path is meant to load AND cache the state.
+ // 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.
330
let mut state: BeaconState<T::EthSpec> = chain
331
.get_state(&state_root, None, true)?
332
.ok_or(Error::MissingBeaconState(state_root))?;
0 commit comments