Versions in this module Expand all Collapse all v1 v1.3.1 Jul 31, 2021 Changes in this version + var DataDirFlag = cli.StringFlag + var DefaultConfig = &Config + var ErrNoPrivValidator = errors.New("cannot start node without private validator") + var ErrStartedEngine = errors.New("started engine") + var ErrStoppedEngine = errors.New("stopped engine") + var ErrUnauthorizedAddress = errors.New("unauthorized address") + var FastSyncFlag = cli.BoolFlag + var MonikerFlag = cli.StringFlag + var NodeLaddrFlag = cli.StringFlag + var RpcLaddrFlag = cli.StringFlag + var SeedsFlag = cli.StringFlag + var SkipUpnpFlag = cli.BoolFlag + var VerbosityFlag = cli.IntFlag + func ConcatCopyPreAllocate(slices [][]byte) []byte + func DefaultDataDir() string + func GetBackend() backend + func GetNeatConConfig(chainId string, ctx *cli.Context) cfg.Config + func HomeDir() string + func New(chainConfig *params.ChainConfig, cliCtx *cli.Context, ...) consensus.NeatCon + func ProtocolAndAddress(listenAddr string) (string, string) + func SetEventSwitch(evsw types.EventSwitch, eventables ...types.Eventable) + type API struct + func (api *API) CreateValidator(from common.Address) (*ntcTypes.PrivV, error) + func (api *API) DecodeExtraData(extra string) (extraApi *ntcTypes.NeatConExtraApi, err error) + func (api *API) GetCandidateList() (*ntcTypes.CandidateApi, error) + func (api *API) GetConsensusPublicKey(extra string) ([]string, error) + func (api *API) GetCurrentEpochNumber() (hexutil.Uint64, error) + func (api *API) GetEpoch(num hexutil.Uint64) (*ntcTypes.EpochApiForConsole, error) + func (api *API) GetForbiddenList() (*ntcTypes.ForbiddenApi, error) + func (api *API) GetNextEpochValidators() ([]*ntcTypes.EpochValidatorForConsole, error) + func (api *API) GetNextEpochVote() (*ntcTypes.EpochVotesApiForConsole, error) + func (api *API) GetValidatorStatus(from common.Address) (*ntcTypes.ValidatorStatus, error) + func (api *API) GetVoteHash(from common.Address, pubkey crypto.BLSPubKey, amount *hexutil.Big, salt string) common.Hash + type Config struct + BlockPeriod uint64 + Epoch uint64 + ProposerPolicy ProposerPolicy + RequestTimeout uint64 + type Node struct + func MakeNeatConNode(backend *backend, config cfg.Config, chainConfig *params.ChainConfig, ...) *Node + func NewNodeNotStart(backend *backend, config cfg.Config, chainConfig *params.ChainConfig, ...) *Node + func (n *Node) ConsensusReactor() *consensus.ConsensusReactor + func (n *Node) ConsensusState() *consensus.ConsensusState + func (n *Node) EventSwitch() types.EventSwitch + func (n *Node) OnStart() error + func (n *Node) OnStop() + func (n *Node) PrivValidator() *types.PrivValidator + func (n *Node) RunForever() + type ProposerPolicy uint64 + const RoundRobin + const Sticky v1.3.0 Jul 31, 2021