Skip to content

[Stacks 2.1] Miner error for epoch start_height and pox_2_activation config values #3407

@zone117x

Description

@zone117x

Initial context for this issue in the comments from another issue: #3261 (comment)

A regtest+krypton miner will error and fail to mine with certain epoch start_height and pox_2_activation (i.e. v1_unlock_height) config.toml values.

Once the pox_2_activation height is reached, the error Failure fetching recipient set: ChainstateError(ClarityError(Interpreter(Unchecked(NoSuchContract("ST000000000000000000002AMW42H.pox-2"))))) is logged in an indefinite loop.

Some config values do work, but approximately 3/4ths of different combinations of these config values will trigger this error.

See the full debug log output here from when this error happens.

Go to the end of the log to see where the miner loops with the error:

ERRO [1668778959.365802] [testnet/stacks-node/src/neon_node.rs:1674] [miner-block-http://0.0.0.0:20443] Relayer: Failure fetching recipient set: ChainstateError(ClarityError(Interpreter(Unchecked(NoSuchContract("ST000000000000000000002AMW42H.pox-2")))))

See here for the config.toml file used, and here for the btc-mining-script.sh script used.

I've also added pushed a docker setup so anyone can easily reproduce this locally, see hirosystems/stacks-regtest-env#16

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Status: 🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions