Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.

This commit is contained in:
practicalswift
2018-09-25 07:00:36 +02:00
parent 579497e77a
commit 9cc0230cfc
11 changed files with 58 additions and 26 deletions

View File

@@ -6,6 +6,7 @@
#ifndef BITCOIN_OUTPUTTYPE_H
#define BITCOIN_OUTPUTTYPE_H
#include <attributes.h>
#include <keystore.h>
#include <script/standard.h>
@@ -26,7 +27,7 @@ enum class OutputType {
CHANGE_AUTO,
};
bool ParseOutputType(const std::string& str, OutputType& output_type);
NODISCARD bool ParseOutputType(const std::string& str, OutputType& output_type);
const std::string& FormatOutputType(OutputType type);
/**