mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-27 02:02:10 +01:00
return id's with the messages
This commit is contained in:
parent
521a10a275
commit
632608a41e
@ -46,7 +46,7 @@ export class AuthorizationMessage extends StratumBaseMessage {
|
||||
|
||||
public response() {
|
||||
return {
|
||||
id: null,
|
||||
id: this.id,
|
||||
error: null,
|
||||
result: true
|
||||
};
|
||||
|
@ -15,7 +15,7 @@ export class ConfigurationMessage extends StratumBaseMessage {
|
||||
|
||||
public response() {
|
||||
return {
|
||||
id: null,
|
||||
id: this.id,
|
||||
error: null,
|
||||
result: {
|
||||
'version-rolling': true,
|
||||
|
@ -55,7 +55,7 @@ export class MiningSubmitMessage extends StratumBaseMessage {
|
||||
|
||||
public response() {
|
||||
return {
|
||||
id: null,
|
||||
id: this.id,
|
||||
error: null,
|
||||
result: true
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ export class SubscriptionMessage extends StratumBaseMessage {
|
||||
|
||||
public response(clientId: string) {
|
||||
return {
|
||||
id: null,
|
||||
id: this.id,
|
||||
error: null,
|
||||
result: [
|
||||
[
|
||||
|
@ -31,7 +31,7 @@ export class SuggestDifficulty extends StratumBaseMessage {
|
||||
|
||||
public response(difficulty: number) {
|
||||
return {
|
||||
id: null,
|
||||
id: this.id,
|
||||
method: eResponseMethod.SET_DIFFICULTY,
|
||||
params: [difficulty]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user