Documentation
¶
Index ¶
- 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 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()
- func (n *Node) Database() kv.RwDB
- func (n *Node) Engine() consensus.Engine
- func (s *Node) Etherbase() (eb types.Address, err error)
- func (n *Node) KeyStoreDir() string
- func (n *Node) Miner() common.IMiner
- func (n *Node) Network() common.INetwork
- func (n *Node) ProtocolHandshake(peer common.IPeer, genesisHash types.Hash, currentHeight *uint256.Int) (common.Peer, bool)
- func (n *Node) ProtocolHandshakeInfo() (types.Hash, *uint256.Int, error)
- func (n *Node) SetupMetrics(config conf.MetricsConfig)
- func (n *Node) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandlerStack ¶
func NewWSHandlerStack ¶
NewWSHandlerStack returns a wrapped ws-related handler.
func OpenDatabase ¶
func SplitTagsFlag ¶
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) KeyStoreDir ¶
KeyStoreDir retrieves the key directory
func (*Node) ProtocolHandshake ¶
func (*Node) ProtocolHandshakeInfo ¶
func (*Node) SetupMetrics ¶
func (n *Node) SetupMetrics(config conf.MetricsConfig)
Click to show internal directories.
Click to hide internal directories.