mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 14:17:17 +00:00
456ac5f9a3
* Done * Fixed lock * Fixed all the tests * Comments * Fixed more tests * Merge branch 'master' into better-head-obj * Fixed more tests * Merge branch 'better-head-obj' of git+ssh://github.com/prysmaticlabs/prysm into better-head-obj * Prestons feedback & fixed test * Nishant's feedback * Participation edge case * Gaz * Merge branch 'master' into better-head-obj * Merge branch 'master' of git+ssh://github.com/prysmaticlabs/prysm into better-head-obj * Raul's feedback * Merge branch 'better-head-obj' of git+ssh://github.com/prysmaticlabs/prysm into better-head-obj
39 lines
1.5 KiB
Go
39 lines
1.5 KiB
Go
package beacon
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
|
blockfeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/block"
|
|
statefeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/state"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/slashings"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/powchain"
|
|
pbp2p "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
|
"github.com/prysmaticlabs/prysm/shared/slotutil"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Beacon Chain service,
|
|
// providing RPC endpoints to access data relevant to the Ethereum 2.0 phase 0
|
|
// beacon chain.
|
|
type Server struct {
|
|
BeaconDB db.ReadOnlyDatabase
|
|
Ctx context.Context
|
|
ChainStartFetcher powchain.ChainStartFetcher
|
|
HeadFetcher blockchain.HeadFetcher
|
|
FinalizationFetcher blockchain.FinalizationFetcher
|
|
ParticipationFetcher blockchain.ParticipationFetcher
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
StateNotifier statefeed.Notifier
|
|
BlockNotifier blockfeed.Notifier
|
|
AttestationsPool attestations.Pool
|
|
SlashingsPool *slashings.Pool
|
|
IncomingAttestation chan *ethpb.Attestation
|
|
CanonicalStateChan chan *pbp2p.BeaconState
|
|
ChainStartChan chan time.Time
|
|
SlotTicker slotutil.Ticker
|
|
}
|