stacks-network/stacks-core

Miner should panic if `mining_key` is not set

Opened this issue · 1 comments

Since the mining_key is required now that Nakamoto is active, MinerConfigFile::into_config_default should panic if it is not set. Otherwise, someone trying to mine could spend Bitcoin but then fail to mine blocks.

Alternative to panicking, it could instead default to using the miner's seed as the mining key if it is not defined.