mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-14 16:50:17 +02:00
refactor: Replace std::optional<bilingual_str> with util::Result
This commit is contained in:
@@ -7,14 +7,12 @@
|
||||
#define BITCOIN_NODE_BLOCKMANAGER_ARGS_H
|
||||
|
||||
#include <node/blockstorage.h>
|
||||
|
||||
#include <optional>
|
||||
#include <util/result.h>
|
||||
|
||||
class ArgsManager;
|
||||
struct bilingual_str;
|
||||
|
||||
namespace node {
|
||||
std::optional<bilingual_str> ApplyArgsManOptions(const ArgsManager& args, BlockManager::Options& opts);
|
||||
util::Result<void> ApplyArgsManOptions(const ArgsManager& args, BlockManager::Options& opts);
|
||||
} // namespace node
|
||||
|
||||
#endif // BITCOIN_NODE_BLOCKMANAGER_ARGS_H
|
||||
|
||||
Reference in New Issue
Block a user