Skip to content

Commit af3c181

Browse files
committed
[test]: remove duplicate WITNESS_SCALE_FACTOR
1 parent 99d7538 commit af3c181

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/functional/feature_taproot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
create_block,
1111
add_witness_commitment,
1212
MAX_BLOCK_SIGOPS_WEIGHT,
13-
WITNESS_SCALE_FACTOR,
1413
)
1514
from test_framework.messages import (
1615
COutPoint,
@@ -20,6 +19,7 @@
2019
CTxOut,
2120
SEQUENCE_FINAL,
2221
tx_from_hex,
22+
WITNESS_SCALE_FACTOR,
2323
)
2424
from test_framework.script import (
2525
ANNEX_TAG,

test/functional/test_framework/blocktools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
ser_uint256,
2929
tx_from_hex,
3030
uint256_from_str,
31+
WITNESS_SCALE_FACTOR,
3132
)
3233
from .script import (
3334
CScript,
@@ -45,7 +46,6 @@
4546
)
4647
from .util import assert_equal
4748

48-
WITNESS_SCALE_FACTOR = 4
4949
MAX_BLOCK_SIGOPS = 20000
5050
MAX_BLOCK_SIGOPS_WEIGHT = MAX_BLOCK_SIGOPS * WITNESS_SCALE_FACTOR
5151

0 commit comments

Comments
 (0)