mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 02:02:42 +02:00
refactor: Replace std::optional<bilingual_str> with util::Result
This commit is contained in:
@@ -5,15 +5,13 @@
|
||||
#ifndef BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
|
||||
#define BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
|
||||
|
||||
#include <util/result.h>
|
||||
#include <validation.h>
|
||||
|
||||
#include <optional>
|
||||
|
||||
class ArgsManager;
|
||||
struct bilingual_str;
|
||||
|
||||
namespace node {
|
||||
std::optional<bilingual_str> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts);
|
||||
util::Result<void> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts);
|
||||
} // namespace node
|
||||
|
||||
#endif // BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
|
||||
|
||||
Reference in New Issue
Block a user