mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-15 18:10:26 +01:00
Replace boost::variant with std::variant
This commit is contained in:
@@ -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 */:
|
||||
|
||||
Reference in New Issue
Block a user