Skip to content

Commit

Permalink
checkpoint: into main from release/2.4.3 @ d260e81 (#18391)
Browse files Browse the repository at this point in the history
Source hash: d260e81
Remaining commits: 2
  • Loading branch information
Starttoaster authored Aug 2, 2024
2 parents 996dcc2 + 25976da commit 9f14f97
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chia/_tests/pools/test_pool_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,20 +438,21 @@ async def test_absorb_self(
assert bal["confirmed_wallet_balance"] == 2 * 1_750_000_000_000

# Claim 2 * 1.75, and farm a new 1.75
absorb_tx: TransactionRecord = (await client.pw_absorb_rewards(2, uint64(fee)))["transaction"]
await full_node_api.wait_transaction_records_entered_mempool(records=[absorb_tx])
absorb_txs: List[TransactionRecord] = (await client.pw_absorb_rewards(2, uint64(fee)))["transactions"]
await full_node_api.wait_transaction_records_entered_mempool(records=absorb_txs)
await full_node_api.farm_blocks_to_puzzlehash(count=2, farm_to=our_ph, guarantee_transaction_blocks=True)
await full_node_api.wait_for_wallet_synced(wallet_node=wallet_node, timeout=20)
await full_node_api.check_transactions_confirmed(wallet_node.wallet_state_manager, absorb_txs)
new_status: PoolWalletInfo = (await client.pw_status(2))[0]
assert status.current == new_status.current
assert status.tip_singleton_coin_id != new_status.tip_singleton_coin_id
bal = await client.get_wallet_balance(2)
assert bal["confirmed_wallet_balance"] == 1 * 1_750_000_000_000

# Claim another 1.75
absorb_tx1: TransactionRecord = (await client.pw_absorb_rewards(2, uint64(fee)))["transaction"]
absorb_txs1: List[TransactionRecord] = (await client.pw_absorb_rewards(2, uint64(fee)))["transactions"]

await full_node_api.wait_transaction_records_entered_mempool(records=[absorb_tx1])
await full_node_api.wait_transaction_records_entered_mempool(records=absorb_txs1)

await full_node_api.farm_blocks_to_puzzlehash(count=2, farm_to=our_ph, guarantee_transaction_blocks=True)
await full_node_api.wait_for_wallet_synced(wallet_node=wallet_node, timeout=20)
Expand Down

0 comments on commit 9f14f97

Please sign in to comment.