Skip to content

Use bitcoin core's txospenderindex to find spending transactions#3279

Draft
sstone wants to merge 2 commits intomasterfrom
use-txospenderindex
Draft

Use bitcoin core's txospenderindex to find spending transactions#3279
sstone wants to merge 2 commits intomasterfrom
use-txospenderindex

Conversation

@sstone
Copy link
Copy Markdown
Member

@sstone sstone commented Apr 2, 2026

If bitcoin core's txospenderindex (added in version 31.0) is available and synced, our Watcher will automatically use it to find spending transactions instead of scanning blocks (which was both expensive and limited as we would only scan a small number of blocks into the past).

Deployment note:

You must enable the new index on bitcoin core with txospenderindex=1 and wait until it is synchonized.
It requires an additional 88Gb as of block 944339,

@sstone sstone changed the title Use bitcoin core's txospenderindex find spending transaction Use bitcoin core's txospenderindex to find spending transaction Apr 2, 2026
@sstone sstone changed the title Use bitcoin core's txospenderindex to find spending transaction Use bitcoin core's txospenderindex to find spending transactions Apr 2, 2026
@sstone sstone force-pushed the use-txospenderindex branch 4 times, most recently from 513211e to d3d7f3c Compare April 22, 2026 14:33
@sstone sstone force-pushed the use-txospenderindex branch from d3d7f3c to 549dfa6 Compare April 28, 2026 18:16
@sstone sstone force-pushed the use-txospenderindex branch from 549dfa6 to 00d357b Compare April 30, 2026 11:12
If bitcoin core's txospenderindex is enabled and sync, we'll automatically use it to find transactions that spent our channels.
@sstone sstone force-pushed the use-txospenderindex branch from 00d357b to 7b7eb49 Compare April 30, 2026 11:23
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