diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-09-01 15:35:23 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2023-05-24 08:55:47 -0400 |
commit | 8aa8f73adce72e1ae855b43413c1f65504423cb7 (patch) | |
tree | 4a62bc784ac4d924708fdaee81354707e8247786 /src/txdb.h | |
parent | 5f49cb1bc8e6ba0671c21bf6292d2d3de43fd001 (diff) | |
download | bitcoin-8aa8f73adce72e1ae855b43413c1f65504423cb7.tar.xz |
refactor: Replace std::optional<bilingual_str> with util::Result
Diffstat (limited to 'src/txdb.h')
-rw-r--r-- | src/txdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txdb.h b/src/txdb.h index 63c7152097..c92733a22c 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -11,6 +11,7 @@ #include <kernel/cs_main.h> #include <sync.h> #include <util/fs.h> +#include <util/result.h> #include <memory> #include <optional> @@ -98,6 +99,6 @@ public: EXCLUSIVE_LOCKS_REQUIRED(::cs_main); }; -std::optional<bilingual_str> CheckLegacyTxindex(CBlockTreeDB& block_tree_db); +util::Result<void> CheckLegacyTxindex(CBlockTreeDB& block_tree_db); #endif // BITCOIN_TXDB_H |