Skip to content

Commit 757b617

Browse files
committed
Simplify protocol
1 parent 336cdaa commit 757b617

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

chia/consensus/block_store_protocol.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,17 @@
77
from chia_rs.sized_bytes import bytes32
88
from chia_rs.sized_ints import uint32
99

10-
from chia.consensus.generator_block_info import GeneratorBlockInfo
11-
1210

1311
class BlockStoreProtocol(Protocol):
1412
async def add_full_block(self, header_hash: bytes32, block: FullBlock, block_record: BlockRecord) -> None: ...
1513
def get_block_from_cache(self, header_hash: bytes32) -> Optional[FullBlock]: ...
1614
async def get_full_block(self, header_hash: bytes32) -> Optional[FullBlock]: ...
17-
async def get_full_block_bytes(self, header_hash: bytes32) -> Optional[bytes]: ...
18-
async def get_full_blocks_at(self, heights: list[uint32]) -> list[FullBlock]: ...
19-
async def get_block_info(self, header_hash: bytes32) -> Optional[GeneratorBlockInfo]: ...
2015
async def get_generator(self, header_hash: bytes32) -> Optional[bytes]: ...
2116
async def get_generators_at(self, heights: set[uint32]) -> dict[uint32, bytes]: ...
2217
async def get_block_record(self, header_hash: bytes32) -> Optional[BlockRecord]: ...
2318
async def get_block_records_in_range(self, start: int, stop: int) -> dict[bytes32, BlockRecord]: ...
2419
async def get_block_records_by_hash(self, header_hashes: list[bytes32]) -> list[BlockRecord]: ...
25-
async def get_block_bytes_by_hash(self, header_hashes: list[bytes32]) -> list[bytes]: ...
2620
async def get_blocks_by_hash(self, header_hashes: list[bytes32]) -> list[FullBlock]: ...
27-
async def get_peak(self) -> Optional[tuple[bytes32, uint32]]: ...
28-
async def get_block_bytes_in_range(self, start: int, stop: int) -> list[bytes]: ...
29-
async def get_random_not_compactified(self, number: int) -> list[int]: ...
3021
async def persist_sub_epoch_challenge_segments(
3122
self, ses_block_hash: bytes32, segments: list[SubEpochChallengeSegment]
3223
) -> None: ...
@@ -38,13 +29,8 @@ async def rollback(self, height: int) -> None: ...
3829
def rollback_cache_block(self, header_hash: bytes32) -> None: ...
3930
async def set_in_chain(self, header_hashes: list[tuple[bytes32]]) -> None: ...
4031
async def set_peak(self, header_hash: bytes32) -> None: ...
41-
async def is_fully_compactified(self, header_hash: bytes32) -> Optional[bool]: ...
42-
async def replace_proof(self, header_hash: bytes32, block: FullBlock) -> None: ...
43-
async def count_compactified_blocks(self) -> int: ...
44-
async def count_uncompactified_blocks(self) -> int: ...
4532
async def get_block_records_close_to_peak(
4633
self, blocks_n: int
4734
) -> tuple[dict[bytes32, BlockRecord], Optional[bytes32]]: ...
48-
4935
async def get_prev_hash(self, header_hash: bytes32) -> bytes32: ...
5036
def transaction(self) -> AbstractAsyncContextManager[Any]: ...

0 commit comments

Comments
 (0)