amana

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: ISC Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientIdentifier = mconsensus.Identifier
)

Functions

func AmanaGenesis added in v1.0.21

func AmanaGenesis() *core.Genesis

func AmanaMixnetGenesis added in v1.0.21

func AmanaMixnetGenesis() *core.Genesis

func AmanaPrivnetGenesis added in v1.0.21

func AmanaPrivnetGenesis() *core.Genesis

func AmanaTestnetGenesis added in v1.0.21

func AmanaTestnetGenesis() *core.Genesis

func ChainConfig

func ChainConfig() *params.ChainConfig

func Cleanup

func Cleanup(cfg *config.Config)

func Genesis added in v1.0.21

func Genesis() *core.Genesis

func MakeConfig

func MakeConfig(datadir string) (*eth.Config, error)

func MakeParams

func MakeParams(cfg *config.Config) (*eth.Config, []string, error)

func UseLogger

func UseLogger(logger l.Logger)

UseLogger uses a specified Logger to output package logging info.

Types

type AmanaInfo

type AmanaInfo struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Enode string `json:"enode"`
	ENR   string `json:"enr"`
	IP    string `json:"ip"`
	Ports struct {
		Discovery int `json:"discovery"`
		Listener  int `json:"listener"`
	} `json:"ports"`
	ListenAddr string `json:"listenAddr"`
	ChainID    uint64 `json:"chainid"`
	NetworkID  uint64 `json:"networkid"`
	IPC        string `json:"ipc,omitempty"`
	HTTP       string `json:"http,omitempty"`
	WS         string `json:"ws,omitempty"`
}

type AmanaService

type AmanaService struct {
	service.Service
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, cons model.Consensus) (*AmanaService, error)

func (*AmanaService) APIs

func (q *AmanaService) APIs() []api.API

func (*AmanaService) Start

func (q *AmanaService) Start() error

func (*AmanaService) Stop

func (q *AmanaService) Stop() error

func (*AmanaService) Upgrade

func (q *AmanaService) Upgrade() error

TODO: Just compatible with old data, will be deleted in the future

type PublicAmanaServiceAPI

type PublicAmanaServiceAPI struct {
	// contains filtered or unexported fields
}

func NewPublicAmanaServiceAPI

func NewPublicAmanaServiceAPI(q *AmanaService) *PublicAmanaServiceAPI

func (*PublicAmanaServiceAPI) GetAmanaNodeInfo

func (api *PublicAmanaServiceAPI) GetAmanaNodeInfo() (interface{}, error)

func (*PublicAmanaServiceAPI) GetAmanaPeerInfo

func (api *PublicAmanaServiceAPI) GetAmanaPeerInfo() (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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