mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 10:41:19 +00:00
2c1c41d1d6
* Move state gen to state * Merge branch 'master' into move-state-gen * Merge refs/heads/master into move-state-gen
19 lines
388 B
Go
19 lines
388 B
Go
package stategen
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
|
)
|
|
|
|
// State represents a management object that handles the internal
|
|
// logic of maintaining both hot and cold states in DB.
|
|
type State struct {
|
|
beaconDB db.NoHeadAccessDatabase
|
|
}
|
|
|
|
// New returns a new state management object.
|
|
func New(db db.NoHeadAccessDatabase) *State {
|
|
return &State{
|
|
beaconDB: db,
|
|
}
|
|
}
|