mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-09 14:18:58 +02:00
Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user