mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
refactor: Replace std::optional<bilingual_str> with util::Result
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <net_types.h> // For banmap_t
|
||||
#include <univalue.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/result.h>
|
||||
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
@@ -49,7 +50,7 @@ public:
|
||||
};
|
||||
|
||||
/** Returns an error string on failure */
|
||||
std::optional<bilingual_str> LoadAddrman(const NetGroupManager& netgroupman, const ArgsManager& args, std::unique_ptr<AddrMan>& addrman);
|
||||
util::Result<std::unique_ptr<AddrMan>> LoadAddrman(const NetGroupManager& netgroupman, const ArgsManager& args);
|
||||
|
||||
/**
|
||||
* Dump the anchor IP address database (anchors.dat)
|
||||
|
||||
Reference in New Issue
Block a user