Replace boost::variant with std::variant

This commit is contained in:
MarcoFalke
2021-01-04 11:20:02 +01:00
parent bc8ada1c15
commit faa8f68943
16 changed files with 56 additions and 66 deletions

View File

@@ -565,7 +565,7 @@ public:
Optional<OutputType> GetOutputType() const override
{
switch (m_destination.which()) {
switch (m_destination.index()) {
case 1 /* PKHash */:
case 2 /* ScriptHash */: return OutputType::LEGACY;
case 3 /* WitnessV0ScriptHash */:
@@ -593,7 +593,7 @@ public:
{
CTxDestination dest;
ExtractDestination(m_script, dest);
switch (dest.which()) {
switch (dest.index()) {
case 1 /* PKHash */:
case 2 /* ScriptHash */: return OutputType::LEGACY;
case 3 /* WitnessV0ScriptHash */: