HomePhabricator

init: avoid unsetting service bits from `nLocalServices`

Description

init: avoid unsetting service bits from nLocalServices

Summary:
Rather than setting the service bit NODE_NETWORK first and then unset
it, start out the bare minimum flags that every node serves and only add
NODE_NETWORK if we are running as a non-pruned node.

This is a backport of core#25887

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17962

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Aug 20 2022, 12:18
PiRKCommitted on Tue, Apr 22, 18:44
PiRKPushed on Tue, Apr 22, 18:44
Reviewer
Restricted Project
Differential Revision
D17962: init: avoid unsetting service bits from `nLocalServices`
Parents
rABC15059d6b6f6a: [Cashtab] Improve flaky token test
Branches
Unknown
Tags
Unknown