Skip to content

LWS fixes#98

Merged
swansontec merged 2 commits intomasterfrom
william/lws-fixes
Nov 17, 2025
Merged

LWS fixes#98
swansontec merged 2 commits intomasterfrom
william/lws-fixes

Conversation

@swansontec
Copy link
Copy Markdown
Contributor

@swansontec swansontec commented Nov 14, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Make LWS REST handling robust by treating tx height/timestamp as optional, adjusting blockHeight/date logic, preserving unconfirmed tx data, and defaulting spend_key_images in UTXOs.

  • Monero LWS compatibility:
    • Treat transactions[].height and transactions[].timestamp as optional in API cleaners and types.
    • In MoneroEngine.processMoneroTransaction, set blockHeight to 0 when mempool or missing height; compute date from timestamp and store as epoch seconds.
    • Preserve first-seen date for unconfirmed tx updates and retain prior nativeAmount when updating existing txs.
    • Normalize UTXO responses from get_unspent_outs by defaulting missing outputs[].spend_key_images to [].
  • Docs:
    • Update CHANGELOG.md with LWS REST handling fix.

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


@swansontec swansontec merged commit 81abbd1 into master Nov 17, 2025
4 checks passed
@swansontec swansontec deleted the william/lws-fixes branch November 17, 2025 17:17
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.

2 participants