Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDumpArguments ¶ added in v0.15.0
type BlockDumpArguments struct {
Height uint64 `json:"height"`
}
BlockDumpInfo - the block to be dumped
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) BlockDump ¶ added in v0.15.0
func (node *Node) BlockDump(arguments *BlockDumpArguments, reply *BlockDumpReply) error
BlockDump - return a dump of the block
Click to show internal directories.
Click to hide internal directories.