config: move common part of notary/state into InternalService
This commit is contained in:
parent
90a85259a8
commit
730849a1cd
3 changed files with 10 additions and 8 deletions
8
pkg/config/internal_service.go
Normal file
8
pkg/config/internal_service.go
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
package config
|
||||||
|
|
||||||
|
// InternalService stores configuration for internal services that don't have
|
||||||
|
// any network configuration, but use a wallet and can be enabled/disabled.
|
||||||
|
type InternalService struct {
|
||||||
|
Enabled bool `yaml:"Enabled"`
|
||||||
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
||||||
|
}
|
|
@ -1,7 +1,4 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
// P2PNotary stores configuration for Notary node service.
|
// P2PNotary stores configuration for Notary node service.
|
||||||
type P2PNotary struct {
|
type P2PNotary InternalService
|
||||||
Enabled bool `yaml:"Enabled"`
|
|
||||||
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
// StateRoot contains state root service configuration.
|
// StateRoot contains state root service configuration.
|
||||||
type StateRoot struct {
|
type StateRoot InternalService
|
||||||
Enabled bool `yaml:"Enabled"`
|
|
||||||
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue