diff options
author | Calvin Kim <calvin@kcalvinalvin.info> | 2020-05-18 17:14:10 +0900 |
---|---|---|
committer | Calvin Kim <calvin@kcalvinalvin.info> | 2020-05-22 01:40:31 +0900 |
commit | c57f03ce1741b38af448bec7b22ab9f8ac21f067 (patch) | |
tree | fc53ee2ad75995ae01f998dca70574754ee91f7b /src/script/standard.h | |
parent | dc5333d31f280e09bb1e8cdacfbe842f4ab9e69b (diff) |
refactor: Replace const char* to std::string
Some functions should be returning std::string instead of const char*.
This commit changes that.
Diffstat (limited to 'src/script/standard.h')
-rw-r--r-- | src/script/standard.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/standard.h b/src/script/standard.h index 49a45f3eba..42f20e6464 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -11,6 +11,8 @@ #include <boost/variant.hpp> +#include <string> + static const bool DEFAULT_ACCEPT_DATACARRIER = true; @@ -146,7 +148,7 @@ typedef boost::variant<CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash, bool IsValidDestination(const CTxDestination& dest); /** Get the name of a txnouttype as a C string, or nullptr if unknown. */ -const char* GetTxnOutputType(txnouttype t); +std::string GetTxnOutputType(txnouttype t); /** * Parse a scriptPubKey and identify script type for standard scripts. If |