2020-03-25 15:30:21 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/storage"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/network/metrics"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/rpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ApplicationConfiguration config specific to the node.
|
|
|
|
type ApplicationConfiguration struct {
|
|
|
|
Address string `yaml:"Address"`
|
|
|
|
AttemptConnPeers int `yaml:"AttemptConnPeers"`
|
|
|
|
DBConfiguration storage.DBConfiguration `yaml:"DBConfiguration"`
|
|
|
|
DialTimeout time.Duration `yaml:"DialTimeout"`
|
|
|
|
LogPath string `yaml:"LogPath"`
|
|
|
|
MaxPeers int `yaml:"MaxPeers"`
|
|
|
|
MinPeers int `yaml:"MinPeers"`
|
|
|
|
NodePort uint16 `yaml:"NodePort"`
|
|
|
|
PingInterval time.Duration `yaml:"PingInterval"`
|
|
|
|
PingTimeout time.Duration `yaml:"PingTimeout"`
|
|
|
|
Pprof metrics.Config `yaml:"Pprof"`
|
|
|
|
Prometheus metrics.Config `yaml:"Prometheus"`
|
|
|
|
ProtoTickInterval time.Duration `yaml:"ProtoTickInterval"`
|
|
|
|
Relay bool `yaml:"Relay"`
|
|
|
|
RPC rpc.Config `yaml:"RPC"`
|
2020-06-26 14:23:10 +00:00
|
|
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
2020-09-28 11:58:04 +00:00
|
|
|
Oracle OracleConfiguration `yaml:"Oracle"`
|
2021-02-16 10:49:56 +00:00
|
|
|
P2PNotary P2PNotary `yaml:"P2PNotary"`
|
2021-02-02 09:34:27 +00:00
|
|
|
StateRoot StateRoot `yaml:"StateRoot"`
|
2020-03-25 15:30:21 +00:00
|
|
|
}
|