service

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: BSD-2-Clause Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRejectedTx added in v0.0.3

func HandleRejectedTx(txn *tx.Tx, err error, nodeID int64, recentRejects map[util.Hash]struct{}) (missTxs []util.Hash, rejectTxs []util.Hash)

func ProcessBlock

func ProcessBlock(b *block.Block, forceProcessing bool) (bool, error)

func ProcessBlockHeader

func ProcessBlockHeader(headerList []*block.BlockHeader, lastIndex *blockindex.BlockIndex) error

func ProcessNewBlock

func ProcessNewBlock(pblock *block.Block, forceProcessing bool, fNewBlock *bool) error

func ProcessTransaction

func ProcessTransaction(txn *tx.Tx, recentRejects map[util.Hash]struct{}, nodeID int64) ([]*tx.Tx, []util.Hash, []util.Hash, error)

Types

type ClearBannedRequest

type ClearBannedRequest struct{}

type GetConnectionCountRequest

type GetConnectionCountRequest struct{}

GetConnectionCountRequest Returns the number of connections to other nodes

type GetConnectionCountResponse

type GetConnectionCountResponse struct {
	Count int
}

type GetNetTotalsRequest

type GetNetTotalsRequest struct{}

type GetPeersInfoRequest

type GetPeersInfoRequest struct{}

GetPeersInfoRequest Returns data about each connected network node as a json array of object. return one object implementing []rpc.RPCServerPeer interface

type ListBannedRequest

type ListBannedRequest struct{}

ListBannedRequest returns btcjson.ListBannedResult and any error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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