MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ParseOutputType

Function ParseOutputType

src/outputtype.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18static const std::string OUTPUT_TYPE_STRING_BECH32 = "bech32";
19
20bool ParseOutputType(const std::string& type, OutputType& output_type)
21{
22 if (type == OUTPUT_TYPE_STRING_LEGACY) {
23 output_type = OutputType::LEGACY;
24 return true;
25 } else if (type == OUTPUT_TYPE_STRING_P2SH_SEGWIT) {
26 output_type = OutputType::P2SH_SEGWIT;
27 return true;
28 } else if (type == OUTPUT_TYPE_STRING_BECH32) {
29 output_type = OutputType::BECH32;
30 return true;
31 }
32 return false;
33}
34
35const std::string& FormatOutputType(OutputType type)
36{

Callers 6

getnewaddressFunction · 0.85
getrawchangeaddressFunction · 0.85
addmultisigaddressFunction · 0.85
FundTransactionFunction · 0.85
CreateWalletFromFileMethod · 0.85
createmultisigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected