include block in attr event and use stategen (#15213)

* include block in attr event and use stategen

* use no-copy state cache for proposal in same epoch

* only advance to the start of epoch

---------

Co-authored-by: Kasey <kasey@users.noreply.github.com>
This commit is contained in:
kasey
2025-04-25 10:11:38 -05:00
committed by GitHub
parent f7eddedd1d
commit c223957751
12 changed files with 61 additions and 51 deletions

View File

@@ -23,8 +23,8 @@ func NewService() *StateManager {
}
// StateByRootIfCachedNoCopy --
func (_ *StateManager) StateByRootIfCachedNoCopy(_ [32]byte) state.BeaconState {
panic("implement me")
func (m *StateManager) StateByRootIfCachedNoCopy(root [32]byte) state.BeaconState {
return m.StatesByRoot[root]
}
// Resume --