Discover Packages
github.com/NethermindEth/juno
node
package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Apr 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
LogLevel utils .LogLevel `mapstructure:"log-level"`
RPCPort uint16 `mapstructure:"rpc-port"`
DatabasePath string `mapstructure:"db-path"`
Network utils .Network `mapstructure:"network"`
Pprof bool `mapstructure:"pprof"`
}
Config is the top-level juno configuration.
New sets the config and logger to the StarknetNode.
Any errors while parsing the config on creating logger will be returned.
Run starts Juno node by opening the DB, initialising services.
All the services blocking and any errors returned by service run function is logged.
Run will wait for all services to return before exiting.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.