core_types

package
v0.0.0-...-c7fad54 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockNonce

type BlockNonce [8]byte

type Peer

type Peer struct {
	p2p.NodeInfo     `json:"node_info"`
	IsOutbound       bool                 `json:"is_outbound"`
	ConnectionStatus p2p.ConnectionStatus `json:"connection_status"`
}

type ResultBlock

type ResultBlock struct {
}

type ResultBlockHeaderInfo

type ResultBlockHeaderInfo struct {
	Version int32 `json:"version"`
	//Height uint64    `json:"height"`
	MerkleRoot        bc.Hash   `json:"merkleroot"`
	PreviousBlockHash bc.Hash   `json:"prevblockhash"`
	TimestampMS       time.Time `json:"timestamp"`
	Bits              uint64    `json:"bits"`
	Nonce             uint64    `json:"nonce"`
}

type ResultBlockchainInfo

type ResultBlockchainInfo struct {
	LastHeight uint64 `json:"last_height"`
}

type ResultDialSeeds

type ResultDialSeeds struct {
	Log string `json:"log"`
}

type ResultNetInfo

type ResultNetInfo struct {
	Listening bool     `json:"listening"`
	Listeners []string `json:"listeners"`
	Peers     []Peer   `json:"peers"`
}

type ResultStatus

type ResultStatus struct {
	NodeInfo          *p2p.NodeInfo `json:"node_info"`
	PubKey            crypto.PubKey `json:"pub_key"`
	LatestBlockHash   data.Bytes    `json:"latest_block_hash"`
	LatestAppHash     data.Bytes    `json:"latest_app_hash"`
	LatestBlockHeight int           `json:"latest_block_height"`
	LatestBlockTime   int64         `json:"latest_block_time"` // nano
}

func (*ResultStatus) TxIndexEnabled

func (s *ResultStatus) TxIndexEnabled() bool

Jump to

Keyboard shortcuts

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