mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
20 lines
597 B
Go
20 lines
597 B
Go
|
package transition
|
||
|
|
||
|
import (
|
||
|
"github.com/ledgerwatch/erigon/cl/phase1/core/state"
|
||
|
"github.com/ledgerwatch/erigon/cl/transition/impl/eth2"
|
||
|
machine2 "github.com/ledgerwatch/erigon/cl/transition/machine"
|
||
|
|
||
|
"github.com/ledgerwatch/erigon/cl/cltypes"
|
||
|
)
|
||
|
|
||
|
var _ machine2.Interface = (*eth2.Impl)(nil)
|
||
|
|
||
|
var DefaultMachine = ð2.Impl{}
|
||
|
var ValidatingMachine = ð2.Impl{FullValidation: true}
|
||
|
|
||
|
func TransitionState(s *state.BeaconState, block *cltypes.SignedBeaconBlock, fullValidation bool) error {
|
||
|
cvm := ð2.Impl{FullValidation: fullValidation}
|
||
|
return machine2.TransitionState(cvm, s, block)
|
||
|
}
|