Skip to content

Long regtest chain synchronization #198

Open

Description

@RuslanProgrammer

simplexl regtest command takes ~7s to launch. Where ~5s of this is taken up by Electrs indexing the only one tx (after generating 100 initial empty blocks).

This 5s value is not random - it is the frequency of the main loop iterations.

Expected behavior:
The startup process should take 5 seconds or less for the described scenario.
The main loop iteration should be executed after new tx in the mempool, and not any ms before.

Activity

  1. shesek commented on Apr 13, 2026

    @shesek
    Collaborator

    takes ~7s to launch .. ~5s of this is taken up by Electrs .. This 5s value is not random - it is the frequency of the main loop

    Electrs runs an immediate chain/mempool sync run on start, so the 5s loop interval shouldn't cause the slow startup.

    One thing you can try it setting --jsonrpc-import (or JSONRPC_IMPORT=1) to disable indexing from blk files, which is typically much faster for small regtest chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions