mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-29 17:19:30 +02:00
[test]: remove duplicate WITNESS_SCALE_FACTOR
This commit is contained in:
parent
99d7538cdb
commit
af3c18169a
@ -10,7 +10,6 @@ from test_framework.blocktools import (
|
||||
create_block,
|
||||
add_witness_commitment,
|
||||
MAX_BLOCK_SIGOPS_WEIGHT,
|
||||
WITNESS_SCALE_FACTOR,
|
||||
)
|
||||
from test_framework.messages import (
|
||||
COutPoint,
|
||||
@ -20,6 +19,7 @@ from test_framework.messages import (
|
||||
CTxOut,
|
||||
SEQUENCE_FINAL,
|
||||
tx_from_hex,
|
||||
WITNESS_SCALE_FACTOR,
|
||||
)
|
||||
from test_framework.script import (
|
||||
ANNEX_TAG,
|
||||
|
@ -28,6 +28,7 @@ from .messages import (
|
||||
ser_uint256,
|
||||
tx_from_hex,
|
||||
uint256_from_str,
|
||||
WITNESS_SCALE_FACTOR,
|
||||
)
|
||||
from .script import (
|
||||
CScript,
|
||||
@ -45,7 +46,6 @@ from .script_util import (
|
||||
)
|
||||
from .util import assert_equal
|
||||
|
||||
WITNESS_SCALE_FACTOR = 4
|
||||
MAX_BLOCK_SIGOPS = 20000
|
||||
MAX_BLOCK_SIGOPS_WEIGHT = MAX_BLOCK_SIGOPS * WITNESS_SCALE_FACTOR
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user