Documentation ¶
Index ¶
- Constants
- func Start()
- type AppFlags
- type NetworkService
- func (s *NetworkService) GetMempoolTxs(ctx context.Context, arg wire.GetMempoolTxsArg, reply *wire.GetMempoolTxsReply) error
- func (s *NetworkService) GetRangeOfBlocks(ctx context.Context, arg wire.GetRangeOfBlocksArg, ...) error
- func (s *NetworkService) LastBlockHeight(ctx context.Context, arg struct{}, reply *wire.LastBlockHeightReply) error
- func (s *NetworkService) Mempool(ctx context.Context, arg struct{}, reply *wire.InvMessage) error
Constants ¶
View Source
const (
DefaultPEXUpdateTime = 6 * time.Second
)
View Source
const (
DioneProtocolID = protocol.ID("/dione/1.0")
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.