2020-03-25 15:30:21 +00:00
|
|
|
package rpc
|
|
|
|
|
2020-12-01 08:40:58 +00:00
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
|
|
|
|
)
|
2020-03-25 15:30:21 +00:00
|
|
|
|
|
|
|
type (
|
|
|
|
// Config is an RPC service configuration information
|
|
|
|
Config struct {
|
|
|
|
Address string `yaml:"Address"`
|
|
|
|
Enabled bool `yaml:"Enabled"`
|
|
|
|
EnableCORSWorkaround bool `yaml:"EnableCORSWorkaround"`
|
|
|
|
// MaxGasInvoke is a maximum amount of gas which
|
|
|
|
// can be spent during RPC call.
|
2020-12-01 08:40:58 +00:00
|
|
|
MaxGasInvoke fixedn.Fixed8 `yaml:"MaxGasInvoke"`
|
|
|
|
Port uint16 `yaml:"Port"`
|
|
|
|
TLSConfig TLSConfig `yaml:"TLSConfig"`
|
2020-03-25 15:30:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// TLSConfig describes SSL/TLS configuration.
|
|
|
|
TLSConfig struct {
|
|
|
|
Address string `yaml:"Address"`
|
|
|
|
CertFile string `yaml:"CertFile"`
|
|
|
|
Enabled bool `yaml:"Enabled"`
|
|
|
|
Port uint16 `yaml:"Port"`
|
|
|
|
KeyFile string `yaml:"KeyFile"`
|
|
|
|
}
|
|
|
|
)
|