Documentation
¶
Index ¶
- type Arguments
- type BlockDecodeArguments
- type BlockDecodeReply
- type BlockDumpArguments
- type BlockDumpRangeArguments
- type BlockDumpRangeReply
- type BlockDumpReply
- type BlockInfo
- type Counters
- type InfoArguments
- type InfoReply
- type MinerInfo
- type Node
- func (node *Node) BlockDecode(arguments *BlockDecodeArguments, reply *BlockDecodeReply) error
- func (node *Node) BlockDump(arguments *BlockDumpArguments, reply *BlockDumpReply) error
- func (node *Node) BlockDumpRange(arguments *BlockDumpRangeArguments, reply *BlockDumpRangeReply) error
- func (node *Node) Info(_ *InfoArguments, reply *InfoReply) error
- func (node *Node) List(arguments *Arguments, reply *Reply) error
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDecodeArguments ¶ added in v0.15.0
type BlockDecodeArguments struct {
Packed []byte `json:"packed"`
}
BlockDecodeArguments - the block to be decodeed
type BlockDecodeReply ¶ added in v0.15.0
type BlockDecodeReply struct {
Block interface{} `json:"block"`
}
BlockDecodeReply - BlockDecode header and transactions
type BlockDumpArguments ¶ added in v0.15.0
BlockDumpArguments - the block to be dumped
type BlockDumpRangeArguments ¶ added in v0.15.0
type BlockDumpRangeArguments struct {
Height uint64 `json:"height,string"`
Count int `json:"count"`
Txs bool `json:"txs"`
}
BlockDumpRangeArguments - the block to be dumped
type BlockDumpRangeReply ¶ added in v0.15.0
type BlockDumpRangeReply struct {
Blocks []interface{} `json:"blocks"`
}
BlockDumpRangeReply - BlockDumpRange header and transactions
type BlockDumpReply ¶ added in v0.15.0
type BlockDumpReply struct {
Block interface{} `json:"block"`
}
BlockDumpReply - BlockDump header and transactions
type InfoReply ¶
type InfoReply struct {
Chain string `json:"chain"`
Mode string `json:"mode"`
Block BlockInfo `json:"block"`
Miner MinerInfo `json:"miner"`
RPCs uint64 `json:"rpcs"`
Peers uint64 `json:"peers"`
TransactionCounters Counters `json:"transactionCounters"`
Difficulty float64 `json:"difficulty"`
Hashrate float64 `json:"hashrate"`
Version string `json:"version"`
Uptime string `json:"uptime"`
PublicKey string `json:"publicKey"`
}
InfoReply - results from info request
type Node ¶
type Node struct {
Log *logger.L
Limiter *rate.Limiter
Start time.Time
Version string
Announce announce.Announce
Pool storage.Handle
// contains filtered or unexported fields
}
Node - type for RPC calls
func (*Node) BlockDecode ¶ added in v0.15.0
func (node *Node) BlockDecode(arguments *BlockDecodeArguments, reply *BlockDecodeReply) error
BlockDecode - return a decoded version of the block
func (*Node) BlockDump ¶ added in v0.15.0
func (node *Node) BlockDump(arguments *BlockDumpArguments, reply *BlockDumpReply) error
BlockDump - return a dump of the block
func (*Node) BlockDumpRange ¶ added in v0.15.0
func (node *Node) BlockDumpRange(arguments *BlockDumpRangeArguments, reply *BlockDumpRangeReply) error
BlockDumpRange - return a dump of the block
Click to show internal directories.
Click to hide internal directories.