mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
config: remove spv related configs
This commit is contained in:
parent
08e57e9ee3
commit
10d58126b5
2 changed files with 1 additions and 15 deletions
11
config.go
11
config.go
|
@ -77,14 +77,6 @@ type config struct {
|
||||||
ProxyUser string `long:"proxyuser" description:"Username for proxy server"`
|
ProxyUser string `long:"proxyuser" description:"Username for proxy server"`
|
||||||
ProxyPass string `long:"proxypass" default-mask:"-" description:"Password for proxy server"`
|
ProxyPass string `long:"proxypass" default-mask:"-" description:"Password for proxy server"`
|
||||||
|
|
||||||
// SPV client options
|
|
||||||
UseSPV bool `long:"usespv" description:"Enables the experimental use of SPV rather than RPC for chain synchronization"`
|
|
||||||
AddPeers []string `short:"a" long:"addpeer" description:"Add a peer to connect with at startup"`
|
|
||||||
ConnectPeers []string `long:"connect" description:"Connect only to the specified peers at startup"`
|
|
||||||
MaxPeers int `long:"maxpeers" description:"Max number of inbound and outbound peers"`
|
|
||||||
BanDuration time.Duration `long:"banduration" description:"How long to ban misbehaving peers. Valid time units are {s, m, h}. Minimum 1 second"`
|
|
||||||
BanThreshold uint32 `long:"banthreshold" description:"Maximum allowed ban score before disconnecting and banning misbehaving peers."`
|
|
||||||
|
|
||||||
// RPC server options
|
// RPC server options
|
||||||
//
|
//
|
||||||
// The legacy server is still enabled by default (and eventually will be
|
// The legacy server is still enabled by default (and eventually will be
|
||||||
|
@ -265,9 +257,6 @@ func loadConfig() (*config, []string, error) {
|
||||||
LegacyRPCMaxClients: defaultRPCMaxClients,
|
LegacyRPCMaxClients: defaultRPCMaxClients,
|
||||||
LegacyRPCMaxWebsockets: defaultRPCMaxWebsockets,
|
LegacyRPCMaxWebsockets: defaultRPCMaxWebsockets,
|
||||||
DataDir: cfgutil.NewExplicitString(defaultAppDataDir),
|
DataDir: cfgutil.NewExplicitString(defaultAppDataDir),
|
||||||
UseSPV: false,
|
|
||||||
AddPeers: []string{},
|
|
||||||
ConnectPeers: []string{},
|
|
||||||
DBTimeout: wallet.DefaultDBTimeout,
|
DBTimeout: wallet.DefaultDBTimeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,10 +135,7 @@ func walletMain() error {
|
||||||
// associated with the server for RPC passthrough and to enable additional
|
// associated with the server for RPC passthrough and to enable additional
|
||||||
// methods.
|
// methods.
|
||||||
func rpcClientConnectLoop(legacyRPCServer *legacyrpc.Server, loader *wallet.Loader) {
|
func rpcClientConnectLoop(legacyRPCServer *legacyrpc.Server, loader *wallet.Loader) {
|
||||||
var certs []byte
|
certs := readCAFile()
|
||||||
if !cfg.UseSPV {
|
|
||||||
certs = readCAFile()
|
|
||||||
}
|
|
||||||
|
|
||||||
for {
|
for {
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Add table
Reference in a new issue