Skip to content

doc: say that listtransactions gives blockheight 0 for a tx not in a block - #9713

Open
nepet wants to merge 1 commit into
ElementsProject:masterfrom
nepet:doc-listtransactions-blockheight
Open

nepet wants to merge 1 commit into
ElementsProject:masterfrom
nepet:doc-listtransactions-blockheight

Conversation

@nepet

@nepet nepet commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Checklist

Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:

  • The changelog has been updated in the relevant commit(s) according to the guidelines.
  • Tests have been added or modified to reflect the changes.
  • Documentation has been reviewed and updated as needed.
  • Related issues have been listed and linked, including any that this PR closes.
  • Important All PRs must consider how to reverse any persistent changes for tools/lightning-downgrade

listtransactions also lists transactions that are not in a block: ones we sent that aren't mined yet, and ones a reorg took out of the chain. For those, blockheight and txindex are 0, as wallet_transactions_get() says, but the schema didn't. This documents it. Only in docs,contrib/msggen/msggen/schema.json is regenerated, and the generated code doesn't change.

…block

listtransactions also lists transactions that are not in a block: ones
we sent that aren't mined yet, and ones a reorg took out of the chain.
For those, blockheight and txindex are 0, which the schema didn't say.

Changelog-None
@nepet
nepet requested a review from cdecker as a code owner November 7, 2026 15:41

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