2020-03-25 15:30:21 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
2022-07-08 16:42:06 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig"
|
2020-03-25 15:30:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// ApplicationConfiguration config specific to the node.
|
|
|
|
type ApplicationConfiguration struct {
|
2022-07-08 16:42:06 +00:00
|
|
|
Address string `yaml:"Address"`
|
|
|
|
AnnouncedNodePort uint16 `yaml:"AnnouncedPort"`
|
|
|
|
AttemptConnPeers int `yaml:"AttemptConnPeers"`
|
|
|
|
DBConfiguration dbconfig.DBConfiguration `yaml:"DBConfiguration"`
|
|
|
|
DialTimeout int64 `yaml:"DialTimeout"`
|
|
|
|
LogPath string `yaml:"LogPath"`
|
|
|
|
MaxPeers int `yaml:"MaxPeers"`
|
|
|
|
MinPeers int `yaml:"MinPeers"`
|
|
|
|
NodePort uint16 `yaml:"NodePort"`
|
|
|
|
PingInterval int64 `yaml:"PingInterval"`
|
|
|
|
PingTimeout int64 `yaml:"PingTimeout"`
|
|
|
|
Pprof BasicService `yaml:"Pprof"`
|
|
|
|
Prometheus BasicService `yaml:"Prometheus"`
|
|
|
|
ProtoTickInterval int64 `yaml:"ProtoTickInterval"`
|
|
|
|
Relay bool `yaml:"Relay"`
|
2022-07-22 16:17:48 +00:00
|
|
|
RPC RPC `yaml:"RPC"`
|
2022-07-08 16:42:06 +00:00
|
|
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
|
|
|
Oracle OracleConfiguration `yaml:"Oracle"`
|
|
|
|
P2PNotary P2PNotary `yaml:"P2PNotary"`
|
|
|
|
StateRoot StateRoot `yaml:"StateRoot"`
|
2021-05-04 14:54:16 +00:00
|
|
|
// ExtensiblePoolSize is the maximum amount of the extensible payloads from a single sender.
|
|
|
|
ExtensiblePoolSize int `yaml:"ExtensiblePoolSize"`
|
2020-03-25 15:30:21 +00:00
|
|
|
}
|