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
11 changes: 11 additions & 0 deletions src/core/web_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4709,6 +4709,17 @@ nlohmann::json MiningInterface::rest_web_currency_info()
default: result["share_version"] = 36; break;
}

// p2pool share version for the current coin — consumed by the
// bundled @c2pool/sharechain-explorer to classify share cells.
// Dash = v16, LTC/DOGE/BTC = v36.
switch (m_blockchain) {
case Blockchain::DASH: result["share_version"] = 16; break;
case Blockchain::LITECOIN:
case Blockchain::BITCOIN:
case Blockchain::DOGECOIN:
default: result["share_version"] = 36; break;
}

return result;
}

Expand Down
Loading