Skip to content

Commit d170331

Browse files
committed
Add V35→V36 transition message blob + fix search paths for deployed binaries
1 parent 49b96f0 commit d170331

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/c2pool/c2pool_refactored.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,11 +2985,14 @@ int main(int argc, char* argv[]) {
29852985

29862986
// Load transition message blobs from shipped + data directories
29872987
{
2988-
// 1. Shipped with source: <repo>/transition_messages/
2988+
// 1. Next to executable: <deploy>/transition_messages/
29892989
auto exe_dir = std::filesystem::path(argv[0]).parent_path();
2990+
web_server.get_mining_interface()->load_transition_blobs(
2991+
(exe_dir / "transition_messages").string());
2992+
// 2. Shipped with source: <repo>/transition_messages/ (build dir layout)
29902993
web_server.get_mining_interface()->load_transition_blobs(
29912994
(exe_dir / ".." / ".." / ".." / "transition_messages").string());
2992-
// 2. User data dir: ~/.c2pool/<net>/transition_messages/
2995+
// 3. User data dir: ~/.c2pool/transition_messages/
29932996
auto data_dir = core::filesystem::config_path();
29942997
web_server.get_mining_interface()->load_transition_blobs(
29952998
(data_dir / "transition_messages").string());

0 commit comments

Comments
 (0)