mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
cbfdd4807e
Former-commit-id: 2513b3150392096adf0ac8e43349a1ff046f941c [formerly ddfe2a5c70a4b28c60d4321d87dc4a2a512fdb72] Former-commit-id: 07ffa1c5adf2ab34760d975110d08ddabf2c3d95
30 lines
796 B
Go
30 lines
796 B
Go
// Package observer launches a service attached to the sharding node
|
|
// that simply observes activity across the sharded Ethereum network.
|
|
package observer
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/log"
|
|
)
|
|
|
|
// Observer holds functionality required to run an observer service
|
|
// in a sharded system. Must satisfy the Service interface defined in
|
|
// sharding/service.go.
|
|
type Observer struct{}
|
|
|
|
// NewObserver creates a new observer instance.
|
|
func NewObserver() (*Observer, error) {
|
|
return &Observer{}, nil
|
|
}
|
|
|
|
// Start the main routine for an observer.
|
|
func (o *Observer) Start() error {
|
|
log.Info("Starting shard observer service")
|
|
return nil
|
|
}
|
|
|
|
// Stop the main loop for observing the shard network.
|
|
func (o *Observer) Stop() error {
|
|
log.Info("Stopping shard observer service")
|
|
return nil
|
|
}
|