Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/impl/dgb/coin/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,22 @@ bool NodeRPC::check()
}
}

// Regtest does not deploy the DGB-specific algo softforks (reservealgo, odo)
// nor nversionbips — those are mainnet/testnet deployments, so a regtest
// digibyted legitimately signals only csv/segwit/taproot. Gating startup on
// deployments the connected chain cannot carry would make the regtest
// won-block path (and CI against regtest) impossible to start, with no
// consensus benefit. Relax ONLY on regtest; mainnet/testnet keep the full
// SSOT requirement set. Non-consensus startup readiness gate only.
std::set<std::string> required = dgb::PoolConfig::SOFTFORKS_REQUIRED;
if (blockchaininfo.value("chain", std::string{}) == "regtest")
{
for (const char* algo_fork : {"reservealgo", "odo", "nversionbips"})
required.erase(algo_fork);
}

std::vector<std::string> missing;
for (const auto& req : dgb::PoolConfig::SOFTFORKS_REQUIRED)
for (const auto& req : required)
{
if (!softforks_supported.contains(req))
missing.push_back(req);
Expand Down
Loading