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 3 times, most recently from 3fc2c65 to 513211e Compare April 22, 2026 14:30
If bitcoin core's txospenderindex is enabled and sync, we'll automatically use it to find transactions that spent channels.
@sstone sstone force-pushed the use-txospenderindex branch from 513211e to d3d7f3c Compare April 22, 2026 14:33
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