mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 02:31:19 +00:00
af70677778
* adding in block rewards to represent consensus payload * Update beacon-chain/rpc/eth/validator/handlers_block.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * radek's comments * more review changes * adding more tests for forks * gaz * updating names * gaz * fixing imports * fixing variable name * gaz * fixing test * renaming variables to match data --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
40 lines
1.7 KiB
Go
40 lines
1.7 KiB
Go
package validator
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/builder"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/cache"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/operation"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/synccommittee"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/core"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/rewards"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/lookup"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/sync"
|
|
eth "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Validator service,
|
|
// providing RPC endpoints intended for validator clients.
|
|
type Server struct {
|
|
HeadFetcher blockchain.HeadFetcher
|
|
TimeFetcher blockchain.TimeFetcher
|
|
SyncChecker sync.Checker
|
|
AttestationsPool attestations.Pool
|
|
PeerManager p2p.PeerManager
|
|
Broadcaster p2p.Broadcaster
|
|
Stater lookup.Stater
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
SyncCommitteePool synccommittee.Pool
|
|
V1Alpha1Server eth.BeaconNodeValidatorServer
|
|
ProposerSlotIndexCache *cache.ProposerPayloadIDsCache
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
BeaconDB db.HeadAccessDatabase
|
|
BlockBuilder builder.BlockBuilder
|
|
OperationNotifier operation.Notifier
|
|
CoreService *core.Service
|
|
BlockRewardFetcher rewards.BlockRewardsFetcher
|
|
}
|