config: move common part of notary/state into InternalService

This commit is contained in:
Roman Khimov 2022-12-05 17:19:32 +03:00
parent 90a85259a8
commit 730849a1cd
3 changed files with 10 additions and 8 deletions

View 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"`
}

View file

@ -1,7 +1,4 @@
package config
// P2PNotary stores configuration for Notary node service.
type P2PNotary struct {
Enabled bool `yaml:"Enabled"`
UnlockWallet Wallet `yaml:"UnlockWallet"`
}
type P2PNotary InternalService

View file

@ -1,7 +1,4 @@
package config
// StateRoot contains state root service configuration.
type StateRoot struct {
Enabled bool `yaml:"Enabled"`
UnlockWallet Wallet `yaml:"UnlockWallet"`
}
type StateRoot InternalService