Skip to content

Commit af37332

Browse files
committed
dash(slice1): web_server 3-way reconcile onto master SSOT base
master already absorbed the embedded web_server work via the S5/S6 slice campaign (hpp byte-identical; cpp diverged only on the coin-node seam API). Resolve the seam to master SSOT (set_coin_node/ICoinNode), and re-apply the one genuinely-additive embedded-only hunk (share_version per blockchain). Compiling base for the embedded S7/S8 source slices to land on.
1 parent 81fef6a commit af37332

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)