We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b5e62 commit 3c539c1Copy full SHA for 3c539c1
miner/payload_building.go
@@ -142,7 +142,13 @@ func (payload *Payload) resolveBestFullPayload(payloads []*Payload) {
142
}
143
144
145
- close(payload.stop)
+ // Since we are not expecting any updates, close the payload already
146
+ select {
147
+ case <-payload.stop:
148
+ default:
149
+ close(payload.stop)
150
+ }
151
+
152
payload.cond.Broadcast() // fire signal for notifying full block
153
154
if payload.full != nil {
0 commit comments