Skip to content

Clarify or drop -sv2interval configuration #60

@Sjors

Description

@Sjors

The current documentation is confusing and seems to stem from before sv2-tp became a standalone application communicating over IPC.

In reality it's parsed and stored as m_options.fee_check_interval. It causes fee changes to be ignored for the first -sv2interval seconds.

It was originally intended to limit how often the node would generate a block template internally, but it no longer has that effect.

Additionally it rate limits how often we send new templates downstream, as there may be some overhead for miners to switch templates. But arguably that overhead is already covered by the minimum fee delta.

It now also functions as an interval for how long each waitNext() times out. That's currently still useful because ctrl + c can't interrupt the process with Bitcoin Core v30 (it can on master, since #57).

I'm tempted to drop the option and instead hardcode a 15 second interval when connected to v30 and no timeout for modern node versions.

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