Skip to content

Fix: generate a new block in the end of prepare_signer()#44

Merged
Arvolear merged 1 commit intoBlockstreamResearch:devfrom
RuslanProgrammer:force-electrs-index
Apr 3, 2026
Merged

Fix: generate a new block in the end of prepare_signer()#44
Arvolear merged 1 commit intoBlockstreamResearch:devfrom
RuslanProgrammer:force-electrs-index

Conversation

@RuslanProgrammer
Copy link
Copy Markdown

The rpc_provider.send_to_address function does not generate a block, meaning the transaction simply appears in the mempool.
The current Electrs version uses a time interval and new block events to trigger index iteration. We can generate an extra block to trigger the index.

This fix should resolve the problem of long regtest startup times (from 6s to 2s).

Copy link
Copy Markdown
Collaborator

@Arvolear Arvolear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

@Arvolear Arvolear merged commit 91e6666 into BlockstreamResearch:dev Apr 3, 2026
7 checks passed
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