Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConfigFile ¶
func SetConfigFile(f string)
Types ¶
type AnchorConfig ¶
type AnchorConfig struct {
App struct {
HomeDir string
DBType string
LdbPath string
BoltPath string
ServerPrivKey string
}
Factom struct {
FactomdAddress string
WalletAddress string
FactoidBalanceThreshold int64
ECBalanceThreshold int64
}
Anchor struct {
ServerECKey string
AnchorSigPublicKey []string
ConfirmationsNeeded int
}
Bitcoin struct {
BTCAddress string
BTCFee float64
MinConfirmations int64
WalletPassphrase string
RPCAddress string
RPCUser string
RPCPass string
}
Ethereum struct {
WalletAddress string
WalletPassword string
ContractAddress string
GasPrice string
ServerAddress string
IgnoreWrongEntries bool
TestNet bool
}
Log struct {
LogPath string
LogLevel string
}
Walletd factom.RPCConfig
Proxy string `long:"proxy" description:"Connect via SOCKS5 proxy (eg. 127.0.0.1:9050)"`
DisableListen bool `` /* 217-byte string literal not displayed */
DisableRPC bool `` /* 136-byte string literal not displayed */
DisableTLS bool `` /* 127-byte string literal not displayed */
DisableDNSSeed bool `long:"nodnsseed" description:"Disable DNS seeding for peers"`
}
func ReReadConfig ¶
func ReReadConfig() *AnchorConfig
func ReadConfig ¶
func ReadConfig() *AnchorConfig
GetConfig reads the default anchormaker.conf file and returns an AnchorConfig object corresponding to the state of the file.
Click to show internal directories.
Click to hide internal directories.