Skip to content

test: refill only the keys wallet_listtransactions.py hands out - #243

Merged
djh58 merged 1 commit into
feature/pq-transportfrom
djh58/fix-242-keypoolrefill
Oct 23, 2026
Merged

djh58 merged 1 commit into
feature/pq-transportfrom
djh58/fix-242-keypoolrefill

Conversation

@djh58

@djh58 djh58 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Fixes #242.

run_externally_generated_address_test refilled node 0's keypool to 1,000 before copying its wallet to node 2, so that node 2 recognizes the addresses node 0 hands out afterwards. For P2MR descriptors each new key derives and persists post-quantum key material, so on a busy machine the call took longer than the 30 s RPC timeout and failed the test.

After the copy the test hands out three addresses and one change address, so a refill of 10 covers it with margin. The test still checks that both nodes list the same transactions, so a refill too small to cover them would fail it.

Verification

On a loaded 22-core host (a fuzz campaign and three nodes running alongside):

  • keypoolrefill(1000): the test failed with the RPC timeout after 39 s.
  • keypoolrefill(10): passed twice, in about 13 s each.

Draft until the pull requests ahead of it in feature/pq-transport have run their CI, since the self-hosted runners take one Full Validation at a time.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

run_externally_generated_address_test refilled node 0's keypool to 1,000
before copying its wallet to node 2. For P2MR descriptors each new key
derives and persists post-quantum key material, so on a busy machine the
call took longer than the 30 s RPC timeout and failed the test. After the
copy the test hands out three addresses and one change address; refill 10.

On a loaded host the test failed this way at 1,000 and passes in about
13 s at 10.

Fixes #242.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@djh58 djh58 added the pq-transport Hybrid post-quantum v2 transport (#184) label Oct 22, 2026
@djh58

djh58 commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T19:45:22.742350Z 1473648 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 1473648e34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@djh58
djh58 marked this pull request as ready for review October 22, 2026 23:32
@djh58
djh58 merged commit 3c4bcb1 into feature/pq-transport Oct 23, 2026
80 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pq-transport Hybrid post-quantum v2 transport (#184)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant