From 8bde2c14d02d82eeaf1e2b456f942a2df31e31e6 Mon Sep 17 00:00:00 2001 From: Virgil Date: Sat, 4 Apr 2026 22:02:25 +0000 Subject: [PATCH] fix(proxy): dispatch login events before splitter assignment Co-Authored-By: Virgil --- state_impl.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/state_impl.go b/state_impl.go index 2ccada3..bae4892 100644 --- a/state_impl.go +++ b/state_impl.go @@ -378,19 +378,12 @@ func (p *Proxy) acceptMiner(conn net.Conn, localPort uint16) { miner.globalDiff = p.config.CustomDiff miner.extNH = strings.EqualFold(p.config.Mode, "nicehash") miner.onLogin = func(m *Miner) { - if p.splitter != nil { - p.splitter.OnLogin(&LoginEvent{Miner: m}) - } - if m.extNH { - if m.MapperID() < 0 { - return - } - } else if m.RouteID() < 0 { - return - } if p.events != nil { p.events.Dispatch(Event{Type: EventLogin, Miner: m}) } + if p.splitter != nil { + p.splitter.OnLogin(&LoginEvent{Miner: m}) + } } miner.onSubmit = func(m *Miner, event *SubmitEvent) { if p.splitter != nil {