Skip to content

Show backend settle time for trusted receives#79

Merged
benthecarman merged 1 commit into
masterfrom
fix-rebalance-times
Jun 25, 2026
Merged

Show backend settle time for trusted receives#79
benthecarman merged 1 commit into
masterfrom
fix-rebalance-times

Conversation

@benthecarman

Copy link
Copy Markdown
Collaborator

A trusted receive is timestamped from the per-payment time the backend reports, but the rebalancer also records discovery-time metadata with SystemTime::now() the first time it observes a payment. list_transactions preferred that metadata time whenever it existed, so with rebalancing on the backend's settle time was always discarded.

For a payment that settled while the wallet was offline, the discovery stamp is the next launch rather than the real settle time. Since history is sorted by timestamp, such a receive also floated to the top as if it were brand new.

Prefer the backend's settle time for inbound receives, falling back to the metadata time only for outbound sends, which we always observe as they happen.

A trusted receive is timestamped from the per-payment time the backend
reports, but the rebalancer also records discovery-time metadata with
SystemTime::now() the first time it observes a payment.
list_transactions preferred that metadata time whenever it existed, so
with rebalancing on the backend's settle time was always discarded.

For a payment that settled while the wallet was offline, the discovery
stamp is the next launch rather than the real settle time. Since
history is sorted by timestamp, such a receive also floated to the top
as if it were brand new.

Prefer the backend's settle time for inbound receives, falling back to
the metadata time only for outbound sends, which we always observe as
they happen.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@benthecarman benthecarman merged commit 73c9554 into master Jun 25, 2026
2 checks passed
@benthecarman benthecarman deleted the fix-rebalance-times branch June 25, 2026 01:29
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