common::OnlyHasDefaultSectionSetting

Return true if a setting is set in the default config file section, and not overridden by a higher priority command-line or network section value.

Synopsis

Declared in <common/settings.h>

bool
OnlyHasDefaultSectionSetting(
    Settings const& settings,
    std::string const& section,
    std::string const& name);

Description

This is used to provide user warnings about values that might be getting ignored unintentionally.

Return Value

true if the value comes only from the default config section.

Parameters

NameDescription
settingsThe combined settings sources to inspect.
sectionThe config section to check (e.g. the network name).
nameThe setting name to check.