policy: Add OP_1 <0x4e73> as a standard output type

These outputs are called anchors, and allow
key-less anchor spends which are vsize-minimized
versus keyed anchors which require larger outputs
when creating and inputs when spending.
This commit is contained in:
Greg Sanders committed 2024-07-30 14:06:58 -04:00
1 parent 8754d055c6
commit 455fca86cf
17 files changed
+106 -3

No files matched your search

+4
View File
@@ -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();