2020-03-25 15:30:21 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/storage"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/rpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ApplicationConfiguration config specific to the node.
|
|
|
|
type ApplicationConfiguration struct {
|
|
|
|
Address string `yaml:"Address"`
|
2021-04-30 08:24:43 +00:00
|
|
|
AnnouncedNodePort uint16 `yaml:"AnnouncedPort"`
|
2020-03-25 15:30:21 +00:00
|
|
|
AttemptConnPeers int `yaml:"AttemptConnPeers"`
|
|
|
|
DBConfiguration storage.DBConfiguration `yaml:"DBConfiguration"`
|
2021-09-25 10:09:37 +00:00
|
|
|
DialTimeout int64 `yaml:"DialTimeout"`
|
2020-03-25 15:30:21 +00:00
|
|
|
LogPath string `yaml:"LogPath"`
|
|
|
|
MaxPeers int `yaml:"MaxPeers"`
|
|
|
|
MinPeers int `yaml:"MinPeers"`
|
|
|
|
NodePort uint16 `yaml:"NodePort"`
|
2021-09-25 10:09:37 +00:00
|
|
|
PingInterval int64 `yaml:"PingInterval"`
|
|
|
|
PingTimeout int64 `yaml:"PingTimeout"`
|
2022-07-08 16:10:46 +00:00
|
|
|
Pprof BasicService `yaml:"Pprof"`
|
|
|
|
Prometheus BasicService `yaml:"Prometheus"`
|
2021-09-25 10:09:37 +00:00
|
|
|
ProtoTickInterval int64 `yaml:"ProtoTickInterval"`
|
2020-03-25 15:30:21 +00:00
|
|
|
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"`
|
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
|
|
|
}
|