8000 Rename APIs, replace eth prefix to xcb by SashaZezulinsky · Pull Request #100 · catchthatrabbit/coreminer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rename APIs, replace eth prefix to xcb #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2024
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
8 changes: 4 additions & 4 deletions libpoolprotocols/stratum/XcbStratumClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ void XcbStratumClient::connect_handler(const boost::system::error_code& ec)

case XcbStratumClient::ETHPROXY:

jReq["method"] = "eth_submitLogin";
jReq["method"] = "xcb_submitLogin";
if (!m_conn->Workername().empty())
jReq["worker"] = m_conn->Workername();
jReq["params"].append(m_conn->User() + m_conn->Path());
Expand Down Expand Up @@ -939,7 +939,7 @@ void XcbStratumClient::processResponse(Json::Value& responseObject)

// Request initial work
jReq["id"] = unsigned(5);
jReq["method"] = "eth_getWork";
jReq["method"] = "xcb_getWork";
jReq["params"] = Json::Value(Json::arrayValue);
}
else
Expand Down Expand Up @@ -1565,7 +1565,7 @@ void XcbStratumClient::submitHashrate(uint64_t const& rate, string const& id)
jReq["jsonrpc"] = "2.0";
if (!m_conn->Workername().empty())
jReq["worker"] = m_conn->Workername();
jReq["method"] = "eth_submitHashrate";
jReq["method"] = "xcb_submitHashrate";
jReq["params"].append(toHex(rate, HexPrefix::Add, 32)); // Already expressed as hex
jReq["params"].append(id); // Already prefixed by 0x
}
Expand Down Expand Up @@ -1623,7 +1623,7 @@ void XcbStratumClient::submitSolution(const Solution& solution)

case XcbStratumClient::ETHPROXY:

jReq["method"] = "eth_submitWork";
jReq["method"] = "xcb_submitWork";
jReq["params"].append(toHex(solution.nonce, HexPrefix::Add));
jReq["params"].append(solution.work.header.hex(HexPrefix::Add));
jReq["params"].append(solution.mixHash.hex(HexPrefix::Add));
Expand Down
0