Skip to content

Commit 7416130

Browse files
author
bay
committed
Stratum server keep updated state even if there are no workers. Otherwise first connected worker getting invalid data
1 parent 8ce4a74 commit 7416130

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

servers/src/mining/stratumserver.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,7 @@ impl Handler {
596596
// Build a new block if there is at least one worker and
597597
// There is a new block on the chain or its time to rebuild
598598
// the current one to include new transactions
599-
if (current_hash != latest_hash || Utc::now().timestamp() >= deadline)
600-
&& self.workers.count() > 0
601-
{
599+
if current_hash != latest_hash || Utc::now().timestamp() >= deadline {
602600
{
603601
debug!("resend updated block");
604602
let wallet_listener_url = if !config.burn_reward {

0 commit comments

Comments
 (0)