test: Add a test for anchor outputs in the wallet

Github-Pull: #33268
Rebased-From: 609d265ebc
This commit is contained in:
Ava Chow
2025-08-28 15:13:23 -07:00
committed by glozow
parent c6e7765c0a
commit f4b78c42e5
3 changed files with 131 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ DUMMY_MIN_OP_RETURN_SCRIPT = CScript([OP_RETURN] + ([OP_0] * (MIN_PADDING - 1)))
assert len(DUMMY_MIN_OP_RETURN_SCRIPT) == MIN_PADDING
PAY_TO_ANCHOR = CScript([OP_1, bytes.fromhex("4e73")])
ANCHOR_ADDRESS = "bcrt1pfeesnyr2tx"
def key_to_p2pk_script(key):
key = check_key(key)