aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/messages.py
diff options
context:
space:
mode:
authorw0xlt <woltx@protonmail.com>2022-08-06 02:57:14 -0300
committerw0xlt <woltx@protonmail.com>2022-08-11 12:05:09 -0300
commit8b3d2bbd0d3c87f1a68586822ddc468e0c2f9b52 (patch)
treeb074a30cdb60a0f88689251337eec3c4e95ff341 /test/functional/test_framework/messages.py
parent93999a5fbe317852307455b6a42d137cc08a0edc (diff)
downloadbitcoin-8b3d2bbd0d3c87f1a68586822ddc468e0c2f9b52.tar.xz
test: add tests for `datacarrier` and `datacarriersize` options
Co-authored-by: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-xtest/functional/test_framework/messages.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py
index b323c52e5e..4e757b64ca 100755
--- a/test/functional/test_framework/messages.py
+++ b/test/functional/test_framework/messages.py
@@ -68,6 +68,9 @@ WITNESS_SCALE_FACTOR = 4
DEFAULT_ANCESTOR_LIMIT = 25 # default max number of in-mempool ancestors
DEFAULT_DESCENDANT_LIMIT = 25 # default max number of in-mempool descendants
+# Default setting for -datacarriersize. 80 bytes of data, +1 for OP_RETURN, +2 for the pushdata opcodes.
+MAX_OP_RETURN_RELAY = 83
+
def sha256(s):
return hashlib.sha256(s).digest()