shard

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessBlock

type ProcessBlock struct {
	Block *wire.MsgBlock
	Added time.Time
}

type Shard

type Shard struct {
	Id      int
	Verbose bool
	Error   chan error

	Blocks map[chainhash.Hash]ProcessBlock
	cluster_pb.UnimplementedClusterServer
	// contains filtered or unexported fields
}

func NewShard

func NewShard(shardId int, verbose bool) *Shard

func (*Shard) Ping

func (*Shard) Run

func (s *Shard) Run() error

func (*Shard) SaveTxs

func (s *Shard) SaveTxs(ctx context.Context, req *cluster_pb.SaveReq) (*cluster_pb.EmptyResp, error)

func (*Shard) Serve

func (s *Shard) Serve() error

func (*Shard) Start

func (s *Shard) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL