mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
This commit is contained in:
@@ -234,7 +234,7 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
|
||||
const errors = await validate(miningSubmitMessage, validatorOptions);
|
||||
|
||||
if (errors.length === 0) {
|
||||
if (errors.length === 0 && this.stratumInitialized == true) {
|
||||
const result = await this.handleMiningSubmission(miningSubmitMessage);
|
||||
if (result == true) {
|
||||
await this.promiseSocket.write(JSON.stringify(miningSubmitMessage.response()) + '\n');
|
||||
|
||||
Reference in New Issue
Block a user