diff options
Diffstat (limited to 'src/key_io.cpp')
-rw-r--r-- | src/key_io.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/key_io.cpp b/src/key_io.cpp index a373a2201d..29002afc45 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -181,6 +181,10 @@ CTxDestination DecodeDestination(const std::string& str, const CChainParams& par return tap; } + if (CScript::IsPayToAnchor(version, data)) { + return PayToAnchor(); + } + if (version > 16) { error_str = "Invalid Bech32 address witness version"; return CNoDestination(); |