aboutsummaryrefslogtreecommitdiff
path: root/src/addrdb.h
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2022-09-01 15:35:23 -0400
committerRyan Ofsky <ryan@ofsky.org>2023-05-24 08:55:47 -0400
commit8aa8f73adce72e1ae855b43413c1f65504423cb7 (patch)
tree4a62bc784ac4d924708fdaee81354707e8247786 /src/addrdb.h
parent5f49cb1bc8e6ba0671c21bf6292d2d3de43fd001 (diff)
downloadbitcoin-8aa8f73adce72e1ae855b43413c1f65504423cb7.tar.xz
refactor: Replace std::optional<bilingual_str> with util::Result
Diffstat (limited to 'src/addrdb.h')
-rw-r--r--src/addrdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/addrdb.h b/src/addrdb.h
index 08d86d0f01..3da630fff8 100644
--- a/src/addrdb.h
+++ b/src/addrdb.h
@@ -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)