Skip to content

Commit

Permalink
remove load_clvm from test_singleton and test_singleton_lifecycle_fast
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Dec 23, 2024
1 parent 6101a86 commit e0f75de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions chia/_tests/wallet/test_singleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
from chia.util.condition_tools import parse_sexp_to_conditions
from chia.wallet.conditions import AssertPuzzleAnnouncement
from chia.wallet.puzzles.load_clvm import load_clvm
from chia.wallet.puzzles.singleton_top_layer import SINGLETON_MOD, SINGLETON_LAUNCHER, P2_SINGLETON_MOD

SINGLETON_MOD = load_clvm("singleton_top_layer.clsp")
LAUNCHER_PUZZLE = load_clvm("singleton_launcher.clsp")
P2_SINGLETON_MOD = load_clvm("p2_singleton.clsp")
POOL_MEMBER_MOD = load_clvm("pool_member_innerpuz.clsp", package_or_requirement="chia.pools.puzzles")
POOL_WAITINGROOM_MOD = load_clvm("pool_waitingroom_innerpuz.clsp", package_or_requirement="chia.pools.puzzles")
LAUNCHER_PUZZLE = SINGLETON_LAUNCHER
P2_SINGLETON_MOD = P2_SINGLETON_MOD

LAUNCHER_PUZZLE_HASH = LAUNCHER_PUZZLE.get_tree_hash()
SINGLETON_MOD_HASH = SINGLETON_MOD.get_tree_hash()
Expand Down
8 changes: 3 additions & 5 deletions chia/_tests/wallet/test_singleton_lifecycle_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
from chia.wallet.puzzles.load_clvm import load_clvm
from chia.wallet.util.debug_spend_bundle import debug_spend_bundle
from chia.wallet.wallet_spend_bundle import WalletSpendBundle
from chia.wallet.puzzles.singleton_top_layer import SINGLETON_MOD, SINGLETON_LAUNCHER, P2_SINGLETON_MOD
from chia.pools.pool_puzzles import POOL_MEMBER_MOD, POOL_WAITING_ROOM_MOD as POOL_WAITINGROOM_MOD

SINGLETON_MOD = load_clvm("singleton_top_layer.clsp")
LAUNCHER_PUZZLE = load_clvm("singleton_launcher.clsp")
P2_SINGLETON_MOD = load_clvm("p2_singleton_or_delayed_puzhash.clsp")
POOL_MEMBER_MOD = load_clvm("pool_member_innerpuz.clsp", package_or_requirement="chia.pools.puzzles")
POOL_WAITINGROOM_MOD = load_clvm("pool_waitingroom_innerpuz.clsp", package_or_requirement="chia.pools.puzzles")
LAUNCHER_PUZZLE = SINGLETON_LAUNCHER

LAUNCHER_PUZZLE_HASH = LAUNCHER_PUZZLE.get_tree_hash()
SINGLETON_MOD_HASH = SINGLETON_MOD.get_tree_hash()
Expand Down

0 comments on commit e0f75de

Please sign in to comment.