masternode

package
v0.0.0-...-774b582 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MASTERNODE_PING_INTERVAL = 1200 * time.Second
)
View Source
const (
	MasternodeInit = iota
)

Variables

This section is empty.

Functions

func GetGovernanceAddress

func GetGovernanceAddress(contract *contract.Contract, blockNumber *big.Int) (common.Address, error)

func GetIdsByBlockNumber

func GetIdsByBlockNumber(contract *contract.Contract, blockNumber *big.Int) ([]string, error)

func GetMasternodeID

func GetMasternodeID(ID discv5.NodeID) string

Types

type Masternode

type Masternode struct {
	ENode *enode.Node

	ID          string
	NodeID      discv5.NodeID
	Account     common.Address
	OriginBlock *big.Int
	State       int

	BlockOnlineAcc *big.Int
	BlockLastPing  *big.Int
}

func (*Masternode) String

func (n *Masternode) String() string

type MasternodeContext

type MasternodeContext struct {
	Node *Masternode
	// contains filtered or unexported fields
}

func GetMasternodeContext

func GetMasternodeContext(opts *bind.CallOpts, contract *contract.Contract, id [8]byte) (*MasternodeContext, error)

Jump to

Keyboard shortcuts

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