mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
7fa6c8dcf6
These parameters denote seconds and are thus unitless integers, not durations. Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
33 lines
1.6 KiB
Go
33 lines
1.6 KiB
Go
package config
|
|
|
|
import (
|
|
"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"`
|
|
AnnouncedNodePort uint16 `yaml:"AnnouncedPort"`
|
|
AttemptConnPeers int `yaml:"AttemptConnPeers"`
|
|
DBConfiguration storage.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 metrics.Config `yaml:"Pprof"`
|
|
Prometheus metrics.Config `yaml:"Prometheus"`
|
|
ProtoTickInterval int64 `yaml:"ProtoTickInterval"`
|
|
Relay bool `yaml:"Relay"`
|
|
RPC rpc.Config `yaml:"RPC"`
|
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
|
Oracle OracleConfiguration `yaml:"Oracle"`
|
|
P2PNotary P2PNotary `yaml:"P2PNotary"`
|
|
StateRoot StateRoot `yaml:"StateRoot"`
|
|
// ExtensiblePoolSize is the maximum amount of the extensible payloads from a single sender.
|
|
ExtensiblePoolSize int `yaml:"ExtensiblePoolSize"`
|
|
}
|