mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
46ecf030f5
* Changed slightly archive format (again) * Added all of the remaining rewards endpoints
20 lines
687 B
Go
20 lines
687 B
Go
package transition
|
|
|
|
import (
|
|
"github.com/ledgerwatch/erigon/cl/abstract"
|
|
"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 abstract.BeaconState, block *cltypes.SignedBeaconBlock, blockRewardsCollector *eth2.BlockRewardsCollector, fullValidation bool) error {
|
|
cvm := ð2.Impl{FullValidation: fullValidation, BlockRewardsCollector: blockRewardsCollector}
|
|
return machine2.TransitionState(cvm, s, block)
|
|
}
|