Documentation
¶
Index ¶
- Constants
- func Mine(ctx context.Context, pb PendingBlock) (database.Block, error)
- type AddPeerRes
- type BalancesRes
- type ErrRes
- type Node
- func (n *Node) AddPeer(peer PeerNode)
- func (n *Node) AddPendingTX(tx database.SignedTx, fromPeer PeerNode) error
- func (n *Node) IsKnownPeer(peer PeerNode) bool
- func (n *Node) LatestBlockHash() database.Hash
- func (n *Node) RemovePeer(peer PeerNode)
- func (n *Node) Run(ctx context.Context, isSSLDisabled bool, sslEmail string) error
- type PeerNode
- type PendingBlock
- type StatusRes
- type SyncRes
- type TxAddReq
- type TxAddRes
Constants ¶
View Source
const DefaultBootstrapAcc = "0x09ee50f2f37fcba1845de6fe5c762e83e65e755c"
View Source
const DefaultBootstrapIp = "127.0.0.1"
View Source
const DefaultIP = "127.0.0.1"
View Source
const DefaultMiner = "0x0000000000000000000000000000000000000000"
View Source
const HttpSSLPort = 443
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddPeerRes ¶
type BalancesRes ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AddPendingTX ¶
func (*Node) IsKnownPeer ¶
func (*Node) LatestBlockHash ¶
func (*Node) RemovePeer ¶
type PeerNode ¶
type PeerNode struct {
IP string `json:"ip"`
Port uint64 `json:"port"`
IsBootstrap bool `json:"is_bootstrap"`
Account common.Address `json:"account"`
// contains filtered or unexported fields
}
func NewPeerNode ¶
func (PeerNode) ApiProtocol ¶
func (PeerNode) TcpAddress ¶
type PendingBlock ¶
type PendingBlock struct {
// contains filtered or unexported fields
}
func NewPendingBlock ¶
Click to show internal directories.
Click to hide internal directories.