HomePhabricator

[seeder] Use netmagic from chainparams instead of a cached global

Description

[seeder] Use netmagic from chainparams instead of a cached global

Summary:
See title. The global cache can cause weird behavior in unit tests
and I don't see any benefit to keeping it around.

Test Plan:

ninja bitcoin-seeder check-seeder

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
jasonbcoxAuthored on Dec 7 2020, 23:14
jasonbcoxPushed on Dec 8 2020, 19:43
Reviewer
Restricted Project
Differential Revision
D8623: [seeder] Use netmagic from chainparams instead of a cached global
Parents
rABCbfbd8ef56e2e: Convert compression.h to new serialization framework
Branches
Unknown
Tags
Unknown