Skip to content

wallet: Restore history from recorded date - #191

Open
BenWestgate wants to merge 1 commit into
gui-prepare-records-reviewfrom
restore-date-review
Open

BenWestgate wants to merge 1 commit into
gui-prepare-records-reviewfrom
restore-date-review

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

Why

Genesis rescans on a pruned node can miss wallet history; newly created wallets must also reload on Core restart.

Change

Extracts unchanged commit b045908 from #113, previously reviewed as #139: asks for a recorded date, preflights pruning, and requests load_on_startup=true for new wallets, with CLI/GUI tests.

Review

Stacked on the blank-record PR. #113 carries the separate safeguard for an actual rescan failure. Block times can be non-monotonic, so preflight cannot guarantee the import will rescan successfully. Supported-Tails/pruned-Core restore remains a manual release gate. AI-assisted description; responsible-human review required.

Ask for the seed's approximate first-use date on restore and reject scans a pruned or validating AssumeUTXO node cannot complete before creating or importing a wallet. Validate retained-block timestamps before date formatting and describe the actual dated scan on the finished page.

Have Core persist load_on_startup at creation. Return all creation warnings for display to the operator instead of inventing a separate loading or quarantine policy. Preserve structural RPC response checks and add regressions for invalid metadata and visible warnings.

Validation: Core 32 regtest with physically pruned genesis recovers a confirmed synthetic payment from the recorded date, refuses timestamp zero before mutation, and reloads restored wallets from settings.json after restart. GUI and Core boundary tests pass under Xvfb; Ruff and mypy pass.

Refs BenWestgate/Bails#314
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-24T09:09:16.133840Z b045908 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

AI-assisted review at maintainer request. Concept ACK b045908 (static). The dated/pruned rescan gate and Core-managed wallet autoload have focused tests; this unchanged commit was previously reviewed in #139. The time preflight alone cannot guarantee a complete scan; stacked #113 handles late Rescan failed. Current-head CI is queued, and a real pruned-Core/Tails restore remains mandatory.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: b045908d2a

ℹ️ 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".

@BenWestgate
BenWestgate added this pull request to stack #204 October 24, 2026 13:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant