Skip to content

Allow read-only threads on block producersΒ #1846

@nsjames

Description

@nsjames

There is an assertion that disallows setting read-only threads on a producer node.

EOS_ASSERT(producer_plugin::test_mode_ || _ro_thread_pool_size == 0 || !is_configured_producer(), plugin_config_exception,

This seems heavy handed and could be a warning instead of a blocking error.

I've been running a local node to develop against for sync_calls and had to comment out that line so that I could run a stale producer that could also serve readonly API calls for unit tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions