Skip to content

Default rpcurl doesn't construct Rpc object #1

@mradkov

Description

@mradkov

The server's default rpcurl is http://127.0.0.1:8941, meaning "connect to an existing node" is the intended primary mode, and --rpcurl=spawn is the special case. But the else branch never constructs the Bitcoin.Rpc object, so the server starts successfully and silently, then crashes on the first request.

if (rpcurl === 'spawn') {
localnet = await Server.regtestSetup({ debug });
} else {
debug(`Using chain ${rpcurl}`);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions