mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-13 06:21:17 +02:00
test: Add anchor mempool acceptance test
This commit is contained in:
@ -8,6 +8,7 @@ import unittest
|
||||
from test_framework.script import (
|
||||
CScript,
|
||||
OP_0,
|
||||
OP_1,
|
||||
OP_15,
|
||||
OP_16,
|
||||
OP_CHECKMULTISIG,
|
||||
@ -42,6 +43,8 @@ assert MIN_PADDING == 5
|
||||
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")])
|
||||
|
||||
def key_to_p2pk_script(key):
|
||||
key = check_key(key)
|
||||
return CScript([key, OP_CHECKSIG])
|
||||
|
Reference in New Issue
Block a user