aboutsummaryrefslogtreecommitdiff
path: root/src/outputtype.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-06-27 14:53:27 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-01-23 16:35:06 -0500
commit81610eddbc57c46ae243f45d73e715d509f53a6c (patch)
tree71b0aec6274d7bcd7f8a985d76d7bfe5a653d223 /src/outputtype.h
parenteb81fc3ee58d3e88af36d8091b9e4017a8603b3c (diff)
downloadbitcoin-81610eddbc57c46ae243f45d73e715d509f53a6c.tar.xz
List output types in an array in order to be iterated over
Diffstat (limited to 'src/outputtype.h')
-rw-r--r--src/outputtype.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/outputtype.h b/src/outputtype.h
index b91082ddc0..1438f65844 100644
--- a/src/outputtype.h
+++ b/src/outputtype.h
@@ -10,6 +10,7 @@
#include <script/signingprovider.h>
#include <script/standard.h>
+#include <array>
#include <string>
#include <vector>
@@ -27,6 +28,8 @@ enum class OutputType {
CHANGE_AUTO,
};
+extern const std::array<OutputType, 3> OUTPUT_TYPES;
+
NODISCARD bool ParseOutputType(const std::string& str, OutputType& output_type);
const std::string& FormatOutputType(OutputType type);
@@ -47,4 +50,3 @@ std::vector<CTxDestination> GetAllDestinationsForKey(const CPubKey& key);
CTxDestination AddAndGetDestinationForScript(FillableSigningProvider& keystore, const CScript& script, OutputType);
#endif // BITCOIN_OUTPUTTYPE_H
-