mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-19 00:04:12 +00:00
30 lines
456 B
Go
30 lines
456 B
Go
|
package sharding
|
||
|
|
||
|
import (
|
||
|
"github.com/ethereum/go-ethereum/log"
|
||
|
cli "gopkg.in/urfave/cli.v1"
|
||
|
)
|
||
|
|
||
|
type Client struct {
|
||
|
}
|
||
|
|
||
|
func MakeShardingClient(ctx *cli.Context) *Client {
|
||
|
// TODO: Setup client
|
||
|
return &Client{}
|
||
|
}
|
||
|
|
||
|
func (c *Client) Start() error {
|
||
|
log.Info("Starting sharding client")
|
||
|
// TODO: Dial to RPC
|
||
|
// TODO: Verify VMC
|
||
|
if err := c.verifyVMC(); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (c *Client) Wait() {
|
||
|
// TODO: Blocking lock
|
||
|
}
|