Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/core/stratum_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ nlohmann::json StratumSession::handle_submit(const nlohmann::json& params, const
<< ": block template changed (job=" << job_id
<< " job_prev=" << job_it->second.gbt_prevhash.substr(0, 16)
<< " current_prev=" << current_prevhash.substr(0, 16) << ")";
++doa_shares_;
// DON'T set job.stale_info here — it would break ref_hash.
// The share is still created and broadcast (matches p2pool behavior).
// DOA tracking is for statistics/dashboard only.
Expand Down
1 change: 1 addition & 0 deletions src/core/stratum_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class StratumSession : public std::enable_shared_from_this<StratumSession>
uint64_t accepted_shares_ = 0;
uint64_t rejected_shares_ = 0;
uint64_t stale_shares_ = 0;
uint64_t doa_shares_ = 0; // block-template changed at submit (live-vs-frozen prevhash mismatch); accounting only, share still broadcasts
std::chrono::steady_clock::time_point connected_at_;
std::string session_id_;

Expand Down
Loading