mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Merge bitcoin/bitcoin#27576: kernel: Remove args, settings, chainparams, chainparamsbase from kernel library
db77f87c63scripted-diff: move settings to common namespace (TheCharlatan)c27e4bdc35move-only: Move settings to the common library (TheCharlatan)c2dae5d7d8kernel: Remove chainparams, chainparamsbase, args, settings from kernel library (TheCharlatan)05870b1c92refactor: Remove gArgs access from validation.cpp (TheCharlatan)8789b11114refactor: Add path argument to FindSnapshotChainstateDir (TheCharlatan)ef95be334frefactor: Add stop_at_height option in ChainstateManager (TheCharlatan) Pull request description: This pull request is part of the `libbitcoinkernel` project https://github.com/bitcoin/bitcoin/issues/27587 https://github.com/bitcoin/bitcoin/projects/18 and more specifically its "Step 2: Decouple most non-consensus code from libbitcoinkernel". --- This completes the removal of the node's chainparams, chainparamsbase, args and settings files and their respective classes from the kernel library. This is the last pull request in a long series working towards decoupling the `ArgsManager` and the `gArgs` global from kernel code. These prior pull requests are: https://github.com/bitcoin/bitcoin/pull/26177 https://github.com/bitcoin/bitcoin/pull/27125 https://github.com/bitcoin/bitcoin/pull/25527 https://github.com/bitcoin/bitcoin/pull/25487 https://github.com/bitcoin/bitcoin/pull/25290 ACKs for top commit: MarcoFalke: lgtm ACKdb77f87c63🍄 hebasto: ACKdb77f87c63, I have reviewed the code and it looks OK. ryanofsky: Code review ACKdb77f87c63. Looks great! Tree-SHA512: cbfbd705d056f2f10f16810d4f869eb152362fff2c5ddae5e1ac6785deae095588e52ad48b29d921962b085e51de1e0ecab6e50f46149ffe3c16250608a2c93a
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <blockfilter.h>
|
||||
#include <clientversion.h>
|
||||
#include <common/args.h>
|
||||
#include <common/settings.h>
|
||||
#include <common/system.h>
|
||||
#include <common/url.h>
|
||||
#include <netbase.h>
|
||||
@@ -22,7 +23,6 @@
|
||||
#include <test/fuzz/util.h>
|
||||
#include <util/error.h>
|
||||
#include <util/fees.h>
|
||||
#include <util/settings.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/string.h>
|
||||
#include <util/translation.h>
|
||||
@@ -63,7 +63,7 @@ FUZZ_TARGET(string)
|
||||
(void)IsDeprecatedRPCEnabled(random_string_1);
|
||||
(void)Join(random_string_vector, random_string_1);
|
||||
(void)JSONRPCError(fuzzed_data_provider.ConsumeIntegral<int>(), random_string_1);
|
||||
const util::Settings settings;
|
||||
const common::Settings settings;
|
||||
(void)OnlyHasDefaultSectionSetting(settings, random_string_1, random_string_2);
|
||||
(void)ParseNetwork(random_string_1);
|
||||
(void)ParseOutputType(random_string_1);
|
||||
|
||||
Reference in New Issue
Block a user