mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
Exposed certain variables in the struct public for the Test framework. (#101)
* Exposed peer seed as a public struct * Made certain variables public in the struct WebAPIInstance
This commit is contained in:
committed by
GitHub
parent
6989ef4a19
commit
3537d04c4d
@@ -43,7 +43,7 @@ type Config struct {
|
||||
PrivateKey string `yaml:"PrivateKey"` // The Private Key, hex encoded so it can be copied manually
|
||||
|
||||
// Initial peer seed list
|
||||
SeedList []peerSeed `yaml:"SeedList"`
|
||||
SeedList []PeerSeed `yaml:"SeedList"`
|
||||
AutoUpdateSeedList bool `yaml:"AutoUpdateSeedList"`
|
||||
SeedListVersion int `yaml:"SeedListVersion"`
|
||||
|
||||
@@ -61,8 +61,8 @@ type Config struct {
|
||||
LimitTotalRecords uint64 `yaml:"LimitTotalRecords"` // Record count limit. 0 = unlimited. Max Records * Max Block Size = Size Limit.
|
||||
}
|
||||
|
||||
// peerSeed is a singl peer entry from the config's seed list
|
||||
type peerSeed struct {
|
||||
// PeerSeed is a singl peer entry from the config's seed list
|
||||
type PeerSeed struct {
|
||||
PublicKey string `yaml:"PublicKey"` // Public key = peer ID. Hex encoded.
|
||||
Address []string `yaml:"Address"` // IP:Port
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user