[LABS-299] Extract pool wallet pubkey generation to WSM #20322
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR moves a small chunk of code out of the RPC.
Note
Extracts pool wallet owner pubkey generation into
WalletStateManager.new_pool_wallet_pubkey()and updates pool wallet creation RPC to use it.new_pool_wallet_pubkey()to derive deterministic pool wallet owner pubkeys withMAX_POOL_WALLETSguard usingmaster_sk_to_singleton_owner_sk.MAX_POOL_WALLETSandmaster_sk_to_singleton_owner_sk.wallet_rpc_api.py):CreateNewWallet(POOL_WALLET,NEW): replace inline owner pubkey derivation and limits logic withwallet_state_manager.new_pool_wallet_pubkey(); pass inlineawait action_scope.get_puzzle_hash(...)toinitial_pool_state_from_dict.initial_pool_state_from_dictfromchia.pools.pool_wallet_info.Written by Cursor Bugbot for commit 4e6324a. This will update automatically on new commits. Configure here.