mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-30 15:58:24 +01:00
test: fix reference to block processing test in p2p_segwit.py
The block test was renamed from `p2p-fullblocks.py` to
`feature_block.py` in commit ca6523d0c8 (PR #11774).
This commit is contained in:
@@ -8,7 +8,12 @@ import random
|
|||||||
import struct
|
import struct
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from test_framework.blocktools import create_block, create_coinbase, add_witness_commitment, WITNESS_COMMITMENT_HEADER
|
from test_framework.blocktools import (
|
||||||
|
WITNESS_COMMITMENT_HEADER,
|
||||||
|
add_witness_commitment,
|
||||||
|
create_block,
|
||||||
|
create_coinbase,
|
||||||
|
)
|
||||||
from test_framework.key import ECKey
|
from test_framework.key import ECKey
|
||||||
from test_framework.messages import (
|
from test_framework.messages import (
|
||||||
BIP125_SEQUENCE_NUMBER,
|
BIP125_SEQUENCE_NUMBER,
|
||||||
@@ -860,7 +865,7 @@ class SegWitTest(BitcoinTestFramework):
|
|||||||
@subtest # type: ignore
|
@subtest # type: ignore
|
||||||
def test_witness_block_size(self):
|
def test_witness_block_size(self):
|
||||||
# TODO: Test that non-witness carrying blocks can't exceed 1MB
|
# TODO: Test that non-witness carrying blocks can't exceed 1MB
|
||||||
# Skipping this test for now; this is covered in p2p-fullblocktest.py
|
# Skipping this test for now; this is covered in feature_block.py
|
||||||
|
|
||||||
# Test that witness-bearing blocks are limited at ceil(base + wit/4) <= 1MB.
|
# Test that witness-bearing blocks are limited at ceil(base + wit/4) <= 1MB.
|
||||||
block = self.build_next_block()
|
block = self.build_next_block()
|
||||||
|
|||||||
Reference in New Issue
Block a user