Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve spend bundle checks in test_dao_proposal_partial_vote #17912

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions chia/_tests/wallet/dao_wallet/test_dao_wallets.py
Expand Up @@ -16,7 +16,6 @@
from chia.types.blockchain_format.program import Program
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.peer_info import PeerInfo
from chia.types.spend_bundle import SpendBundle
from chia.util.bech32m import encode_puzzle_hash
from chia.util.ints import uint32, uint64, uint128
from chia.util.timing import adjusted_timeout
Expand Down Expand Up @@ -957,7 +956,7 @@ async def test_dao_proposal_partial_vote(
await dao_wallet_0.wallet_state_manager.add_pending_transactions([funding_tx])
assert isinstance(funding_tx, TransactionRecord)
funding_sb = funding_tx.spend_bundle
assert isinstance(funding_sb, SpendBundle)
assert funding_sb is not None
await time_out_assert_not_none(5, full_node_api.full_node.mempool_manager.get_spendbundle, funding_sb.name())
await full_node_api.process_transaction_records(records=[funding_tx])
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(puzzle_hash_0))
Expand Down Expand Up @@ -1010,7 +1009,7 @@ async def test_dao_proposal_partial_vote(
await dao_wallet_0.wallet_state_manager.add_pending_transactions([proposal_tx])
assert isinstance(proposal_tx, TransactionRecord)
proposal_sb = proposal_tx.spend_bundle
assert isinstance(proposal_sb, SpendBundle)
assert proposal_sb is not None
await time_out_assert_not_none(5, full_node_api.full_node.mempool_manager.get_spendbundle, proposal_sb.name())
await full_node_api.process_spend_bundles(bundles=[proposal_sb])
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(puzzle_hash_0))
Expand Down