Skip to content

Commit 7364408

Browse files
authored
Merge pull request #165 from frstrtr/dash/embedded-base-slice1
dash(slice1): embedded compiling base — build-glue + web_server SSOT reconcile
2 parents 0989175 + af37332 commit 7364408

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/core/web_server.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4709,6 +4709,17 @@ nlohmann::json MiningInterface::rest_web_currency_info()
47094709
default: result["share_version"] = 36; break;
47104710
}
47114711

4712+
// p2pool share version for the current coin — consumed by the
4713+
// bundled @c2pool/sharechain-explorer to classify share cells.
4714+
// Dash = v16, LTC/DOGE/BTC = v36.
4715+
switch (m_blockchain) {
4716+
case Blockchain::DASH: result["share_version"] = 16; break;
4717+
case Blockchain::LITECOIN:
4718+
case Blockchain::BITCOIN:
4719+
case Blockchain::DOGECOIN:
4720+
default: result["share_version"] = 36; break;
4721+
}
4722+
47124723
return result;
47134724
}
47144725

0 commit comments

Comments
 (0)