mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 20:20:05 +00:00
5a505509c3
* Use store in blockchain service * handle nil cases
16 lines
409 B
Go
16 lines
409 B
Go
package store
|
|
|
|
import (
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
func New(justifiedCheckpt *ethpb.Checkpoint, finalizedCheckpt *ethpb.Checkpoint) *Store {
|
|
return &Store{
|
|
justifiedCheckpt: justifiedCheckpt,
|
|
prevJustifiedCheckpt: justifiedCheckpt,
|
|
bestJustifiedCheckpt: justifiedCheckpt,
|
|
finalizedCheckpt: finalizedCheckpt,
|
|
prevFinalizedCheckpt: finalizedCheckpt,
|
|
}
|
|
}
|