MCPcopy Create free account
hub / github.com/ElementsProject/elements / validate

Method validate

src/qt/optionsdialog.cpp:425–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425QValidator::State ProxyAddressValidator::validate(QString &input, int &pos) const
426{
427 Q_UNUSED(pos);
428 // Validate the proxy
429 CService serv(LookupNumeric(input.toStdString(), DEFAULT_GUI_PROXY_PORT));
430 Proxy addrProxy = Proxy(serv, true);
431 if (addrProxy.IsValid())
432 return QValidator::Acceptable;
433
434 return QValidator::Invalid;
435}

Callers 3

checkValidityMethod · 0.45
isValidMethod · 0.45
PrepareSendTextMethod · 0.45

Calls 3

LookupNumericFunction · 0.85
ProxyClass · 0.50
IsValidMethod · 0.45

Tested by

no test coverage detected