From a9de7944dd93ae9eff3257f79a3e86438104c11c Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 25 Sep 2024 21:05:02 +0200 Subject: [PATCH] fixed an old error in stratum server when incorrect worker's name (!="miner") invalidates mining address that was already set in daemon --- src/stratum/stratum_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratum/stratum_server.cpp b/src/stratum/stratum_server.cpp index f100efef..4cfa686a 100644 --- a/src/stratum/stratum_server.cpp +++ b/src/stratum/stratum_server.cpp @@ -590,7 +590,8 @@ namespace error_str << "wallet address " << user_str << " doesn't match the address previously set in daemon and/or other workers."; } - set_miner_address(address); + if (!error) + set_miner_address(address); } if (error)