Documentation ¶
Index ¶
- Variables
- func NewHTTPHandlerStack(srv http.Handler, cors []string, vhosts []string, jwtSecret []byte) http.Handler
- func NewWSHandlerStack(srv http.Handler, jwtSecret []byte) http.Handler
- func OpenDatabase(cfg *conf.Config, logger log2.Logger, name string) (kv.RwDB, error)
- func RegisterApisFromWhitelist(apis []jsonrpc.API, modules []string, srv *jsonrpc.Server, exposeAll bool) error
- func SplitTagsFlag(tagsFlag string) map[string]string
- func WriteChainConfig(db kv.RwTx, genesisHash types.Hash, genesis *conf.Genesis) error
- func WriteGenesisBlock(db kv.RwTx, genesis *conf.Genesis) (*block.Block, error)
- type Node
- func (n *Node) AccountManager() *accounts.Manager
- func (n *Node) BlockChain() common.IBlockChain
- func (n *Node) ChainDb() kv.RwDB
- func (n *Node) Close() error
- func (n *Node) Database() kv.RwDB
- func (n *Node) Engine() consensus.Engine
- func (s *Node) Etherbase() (eb types.Address, err error)
- func (n *Node) InstanceDir() string
- func (n *Node) KeyStoreDir() string
- func (n *Node) Miner() common.IMiner
- func (n *Node) SetupMetrics(config conf.MetricsConfig)
- func (n *Node) Start() error
- func (n *Node) Wait()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewHTTPHandlerStack ¶
func NewWSHandlerStack ¶
NewWSHandlerStack returns a wrapped ws-related handler.
func OpenDatabase ¶
func SplitTagsFlag ¶
func WriteChainConfig ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AccountManager ¶
AccountManager retrieves the account manager used by the protocol stack.
func (*Node) BlockChain ¶
func (n *Node) BlockChain() common.IBlockChain
AccountManager retrieves the account manager used by the protocol stack.
func (*Node) InstanceDir ¶
InstanceDir retrieves the instance directory used by the protocol stack.
func (*Node) KeyStoreDir ¶
KeyStoreDir retrieves the key directory
func (*Node) SetupMetrics ¶
func (n *Node) SetupMetrics(config conf.MetricsConfig)
Click to show internal directories.
Click to hide internal directories.