@pytest.mark.asyncio
async def test_hints_in_blockchain(self, empty_blockchain):
    blockchain: Blockchain = empty_blockchain
    blocks = bt.get_consecutive_blocks(5, block_list_input=[], guarantee_transaction_block=True, farmer_reward_puzzle_hash=bt.pool_ph, pool_reward_puzzle_hash=bt.pool_ph)
    for block in blocks:
        (await blockchain.receive_block(block))
    wt: WalletTool = bt.get_pool_wallet_tool()
    puzzle_hash = (32 * b'\x00')
    amount = int_to_bytes(1)
    hint = (32 * b'\x05')
    coin_spent = list(blocks[(- 1)].get_included_reward_coins())[0]
    condition_dict = {ConditionOpcode.CREATE_COIN: [ConditionWithArgs(ConditionOpcode.CREATE_COIN, [puzzle_hash, amount, hint])]}
    tx: SpendBundle = wt.generate_signed_transaction(10, wt.get_new_puzzlehash(), coin_spent, condition_dic=condition_dict)
    blocks = bt.get_consecutive_blocks(10, block_list_input=blocks, guarantee_transaction_block=True, transaction_data=tx)
    for block in blocks:
        (await blockchain.receive_block(block))
    get_hint = (await blockchain.hint_store.get_coin_ids(hint))
    assert (get_hint[0] == Coin(coin_spent.name(), puzzle_hash, 1).name())
@pytest.mark.asyncio
async def test_hints_in_blockchain(self, empty_blockchain):
    blockchain: Blockchain = empty_blockchain
    blocks = bt.get_consecutive_blocks(5, block_list_input=[], guarantee_transaction_block=True, farmer_reward_puzzle_hash=bt.pool_ph, pool_reward_puzzle_hash=bt.pool_ph)
    for block in blocks:
        (await blockchain.receive_block(block))
    wt: WalletTool = bt.get_pool_wallet_tool()
    puzzle_hash = (32 * b'\x00')
    amount = int_to_bytes(1)
    hint = (32 * b'\x05')
    coin_spent = list(blocks[(- 1)].get_included_reward_coins())[0]
    condition_dict = {ConditionOpcode.CREATE_COIN: [ConditionWithArgs(ConditionOpcode.CREATE_COIN, [puzzle_hash, amount, hint])]}
    tx: SpendBundle = wt.generate_signed_transaction(10, wt.get_new_puzzlehash(), coin_spent, condition_dic=condition_dict)
    blocks = bt.get_consecutive_blocks(10, block_list_input=blocks, guarantee_transaction_block=True, transaction_data=tx)
    for block in blocks:
        (await blockchain.receive_block(block))
    get_hint = (await blockchain.hint_store.get_coin_ids(hint))
    assert (get_hint[0] == Coin(coin_spent.name(), puzzle_hash, 1).name())