node

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPEXUpdateTime = 6 * time.Second
)
View Source
const (
	DioneProtocolID = protocol.ID("/dione/1.0")
)

Variables

This section is empty.

Functions

func Start

func Start()

Types

type AppFlags

type AppFlags struct {
	ConfigPath string
	Verbose    bool
}

type NetworkService

type NetworkService struct {
	// contains filtered or unexported fields
}

func NewNetworkService

func NewNetworkService(bc *blockchain.BlockChain, mp *pool.Mempool) *NetworkService

func (*NetworkService) GetMempoolTxs

func (s *NetworkService) GetMempoolTxs(ctx context.Context, arg wire.GetMempoolTxsArg, reply *wire.GetMempoolTxsReply) error

func (*NetworkService) GetRangeOfBlocks

func (s *NetworkService) GetRangeOfBlocks(ctx context.Context, arg wire.GetRangeOfBlocksArg, reply *wire.GetRangeOfBlocksReply) error

func (*NetworkService) LastBlockHeight

func (s *NetworkService) LastBlockHeight(ctx context.Context, arg struct{}, reply *wire.LastBlockHeightReply) error

func (*NetworkService) Mempool

func (s *NetworkService) Mempool(ctx context.Context, arg struct{}, reply *wire.InvMessage) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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