Repository: Chia-Network/chia-blockchain
File: chia/consensus/coin_store_protocol.py (Python)

Code before:
        *,
        max_items: int = 50000,
    ) -> set[CoinState]:
        """
        Returns the coin states for a set of puzzle hashes
        """

    async def get_coin_records_by_parent_ids(
        self,
        include_spent_coins: bool,
        parent_ids: list[bytes32],
        start_height: uint32 = uint32(0),
        end_height: uint32 = uint32((2**32) - 1),
    ) -> list[CoinRecord]:
        """
        Returns the coin records for a list of parent ids
        """

    async def get_coin_states_by_ids(
        self,
        include_spent_coins: bool,
        coin_ids: Collection[bytes32],
        min_height: uint32 = uint32(0),
        *,
        max_height: uint32 = uint32.MAXIMUM,
        max_items: int = 50000,
    ) -> list[CoinState]:
        """
        Returns the coin states for a collection of coin ids
        """

    async def batch_coin_states_by_puzzle_hashes(
        self,
        puzzle_hashes: list[bytes32],
        *,
        min_height: uint32 = uint32(0),
        include_spent: bool = True,
        include_unspent: bool = True,
        include_hinted: bool = True,
        min_amount: uint64 = uint64(0),
        max_items: int = 50000,
    ) -> tuple[list[CoinState], Optional[uint32]]:
        """
        Returns the coin states, as well as the next block height (or `None` if finished).
        """

    async def get_unspent_lineage_info_for_puzzle_hash(self, puzzle_hash: bytes32) -> Optional[UnspentLineageInfo]:
        """
        Lookup the most recent unspent lineage that matches a puzzle hash
        """


Review comment (suggestion):
```suggestion
        max_height: uint32 = ...,
        max_items: int = ...,
```

Code after:
        *,
        max_items: int = ...,
    ) -> set[CoinState]:
        """
        Returns the coin states for a set of puzzle hashes
        """

    async def get_coin_records_by_parent_ids(
        self,
        include_spent_coins: bool,
        parent_ids: list[bytes32],
        start_height: uint32 = ...,
        end_height: uint32 = ...,
    ) -> list[CoinRecord]:
        """
        Returns the coin records for a list of parent ids
        """

    async def get_coin_states_by_ids(
        self,
        include_spent_coins: bool,
        coin_ids: Collection[bytes32],
        min_height: uint32 = uint32(0),
        *,
        max_height: uint32 = ...,
        max_items: int = ...,
    ) -> list[CoinState]:
        """
        Returns the coin states for a collection of coin ids
        """

    async def batch_coin_states_by_puzzle_hashes(
        self,
        puzzle_hashes: list[bytes32],
        *,
        min_height: uint32 = ...,
        include_spent: bool = ...,
        include_unspent: bool = ...,
        include_hinted: bool = ...,
        min_amount: uint64 = ...,
        max_items: int = ...,
    ) -> tuple[list[CoinState], Optional[uint32]]:
        """
        Returns the coin states, as well as the next block height (or `None` if finished).
        """

    async def get_unspent_lineage_info_for_puzzle_hash(self, puzzle_hash: bytes32) -> Optional[UnspentLineageInfo]:
        """
        Lookup the most recent unspent lineage that matches a puzzle hash
        """