mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
98e26d1dcc
* First pass at adding bulk signature verification for block deposits * checkpoint * some refactoring to allow for bulk deposit signature verification * nil check * fix goimports * fmt * rename ProcessPreGenesisDeposit -> ProcessPreGenesisDeposits
18 lines
489 B
Go
18 lines
489 B
Go
package powchain
|
|
|
|
import (
|
|
"context"
|
|
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
|
|
)
|
|
|
|
func (s *Service) processDeposit(eth1Data *ethpb.Eth1Data, deposit *ethpb.Deposit) error {
|
|
var err error
|
|
if err := s.preGenesisState.SetEth1Data(eth1Data); err != nil {
|
|
return err
|
|
}
|
|
s.preGenesisState, err = blocks.ProcessPreGenesisDeposits(context.Background(), s.preGenesisState, []*ethpb.Deposit{deposit})
|
|
return err
|
|
}
|