Skip to content

Conversation

@Quexington
Copy link
Contributor

@Quexington Quexington commented Dec 5, 2025

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.

  • WalletStateManager:
    • Add new_pool_wallet_pubkey() to derive deterministic pool wallet owner pubkeys with MAX_POOL_WALLETS guard using master_sk_to_singleton_owner_sk.
    • Import MAX_POOL_WALLETS and master_sk_to_singleton_owner_sk.
  • Wallet RPC (wallet_rpc_api.py):
    • CreateNewWallet (POOL_WALLET, NEW): replace inline owner pubkey derivation and limits logic with wallet_state_manager.new_pool_wallet_pubkey(); pass inline await action_scope.get_puzzle_hash(...) to initial_pool_state_from_dict.
    • Tidy imports to include initial_pool_state_from_dict from chia.pools.pool_wallet_info.

Written by Cursor Bugbot for commit 4e6324a. This will update automatically on new commits. Configure here.

@Quexington Quexington requested a review from a team as a code owner December 5, 2025 16:58
@Quexington Quexington changed the title Extract pool wallet pubkey generation to WSM [LABS-299] Extract pool wallet pubkey generation to WSM Dec 5, 2025
@Quexington Quexington added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Dec 5, 2025
Base automatically changed from quex.port_create_new_wallet_to_marshal to main December 8, 2025 17:31
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Dec 8, 2025
@Quexington Quexington force-pushed the quex.extract_pool_pubkey_to_wsm branch from 191874a to 4e6324a Compare December 8, 2025 17:38
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Dec 8, 2025
Copy link
Contributor

@prozacchiwawa prozacchiwawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense. verified that the formerly copied path matches the one in master_sk_to_singleton_owner_sk.

@emlowe
Copy link
Contributor

emlowe commented Dec 9, 2025

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!


@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

File Coverage Missing Lines
chia/wallet/wallet_state_manager.py 87.5% lines 3006
Total Missing Coverage
9 lines Unknown 88%

@Quexington Quexington added the ready_to_merge Submitter and reviewers think this is ready label Dec 10, 2025
@TheLastCicada TheLastCicada merged commit 144c1a3 into main Dec 10, 2025
616 of 619 checks passed
@TheLastCicada TheLastCicada deleted the quex.extract_pool_pubkey_to_wsm branch December 10, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changed Required label for PR that categorizes merge commit message as "Changed" for changelog ready_to_merge Submitter and reviewers think this is ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants