Skip to content

Keep scanned sends mined and remove expired payments - #48

Merged
tzarebczan merged 3 commits into
mainfrom
expired-payment-history
Oct 20, 2026
Merged

tzarebczan merged 3 commits into
mainfrom
expired-payment-history

Conversation

@tzarebczan

Copy link
Copy Markdown
Owner

Summary

  • A saved send that appears in a scanned block stays mined at expiry, including when no note of ours decrypted. Previously that payment showed as expired and its inputs were released.
  • abandonExpired removes one expired, unmined activity row on the native bridge and in the browser engine. Confirmed payments, still-pending payments, and a payment whose output another saved payment spends stay. Hardware rollback still uses the broader unmined abandon.

Test

  • cargo test -p z-engine --lib saved_send_in_a_scanned_block_stays_mined_at_expiry
  • cargo test -p z-engine --lib abandon_expired_removes_only_an_expired_unmined_send
  • cargo test -p z-engine --lib abandon_expired_keeps_pending_mined_and_spent_outputs

Expiry was releasing that send when no note decrypted, so a mined payment
showed as expired and its inputs became spendable again.
Confirmed and still-pending payments stay. A payment whose output another
saved payment spends stays too. Hardware rollback still uses the broader
unmined abandon.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-20T17:45:24.051132Z 6858bfa PR opened
🔒 Security Review ✅ Completed 2026-10-20T17:47:08.180051Z 6858bfa PR opened
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6858bfa4c4

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

Comment thread crates/z-engine/src/web/scan.rs Outdated
Batch sync recorded the mined height before that receipt existed, so its
history date stayed empty. Stamp inclusion after ingest and before expiry
can release a send the wallet already tracked.
@tzarebczan
tzarebczan merged commit f0d8573 into main Oct 20, 2026
8 checks passed
@tzarebczan
tzarebczan deleted the expired-payment-history branch October 20, 2026 19:25
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