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

Name

Description

settings

The combined settings sources to inspect.

section

The config section to check (e.g. the network name).

name

The setting name to check.

Created with MrDocs