[test]: remove duplicate WITNESS_SCALE_FACTOR

This commit is contained in:
ismaelsadeeq committed 2024-05-03 10:30:50 +01:00
1 parent 99d7538cdb
commit af3c18169a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -10,7 +10,6 @@ from test_framework.blocktools import (
create_block, create_block,
add_witness_commitment, add_witness_commitment,
MAX_BLOCK_SIGOPS_WEIGHT, MAX_BLOCK_SIGOPS_WEIGHT,
WITNESS_SCALE_FACTOR,
) )
from test_framework.messages import ( from test_framework.messages import (
COutPoint, COutPoint,
@@ -20,6 +19,7 @@ from test_framework.messages import (
CTxOut, CTxOut,
SEQUENCE_FINAL, SEQUENCE_FINAL,
tx_from_hex, tx_from_hex,
WITNESS_SCALE_FACTOR,
) )
from test_framework.script import ( from test_framework.script import (
ANNEX_TAG, ANNEX_TAG,
+1 -1
View File
@@ -28,6 +28,7 @@ from .messages import (
ser_uint256, ser_uint256,
tx_from_hex, tx_from_hex,
uint256_from_str, uint256_from_str,
WITNESS_SCALE_FACTOR,
) )
from .script import ( from .script import (
CScript, CScript,
@@ -45,7 +46,6 @@ from .script_util import (
) )
from .util import assert_equal from .util import assert_equal
WITNESS_SCALE_FACTOR = 4
MAX_BLOCK_SIGOPS = 20000 MAX_BLOCK_SIGOPS = 20000
MAX_BLOCK_SIGOPS_WEIGHT = MAX_BLOCK_SIGOPS * WITNESS_SCALE_FACTOR MAX_BLOCK_SIGOPS_WEIGHT = MAX_BLOCK_SIGOPS * WITNESS_SCALE_FACTOR