mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-28 18:52:16 +01:00
version mask
This commit is contained in:
parent
278e796d5b
commit
50b4230191
@ -1,5 +1,5 @@
|
|||||||
import { Expose, Transform } from 'class-transformer';
|
import { Expose, Transform } from 'class-transformer';
|
||||||
import { ArrayMaxSize, ArrayMinSize, IsArray, IsOptional, IsString } from 'class-validator';
|
import { ArrayMaxSize, ArrayMinSize, IsArray, IsString } from 'class-validator';
|
||||||
|
|
||||||
import { eRequestMethod } from '../enums/eRequestMethod';
|
import { eRequestMethod } from '../enums/eRequestMethod';
|
||||||
import { StratumBaseMessage } from './StratumBaseMessage';
|
import { StratumBaseMessage } from './StratumBaseMessage';
|
||||||
@ -43,10 +43,9 @@ export class MiningSubmitMessage extends StratumBaseMessage {
|
|||||||
public nonce: string
|
public nonce: string
|
||||||
|
|
||||||
@Expose()
|
@Expose()
|
||||||
@IsOptional()
|
|
||||||
@IsString()
|
@IsString()
|
||||||
@Transform(({ value, key, obj, type }) => {
|
@Transform(({ value, key, obj, type }) => {
|
||||||
return obj.params[5];
|
return obj.params[5] == null ? 0 : obj.params[5];
|
||||||
})
|
})
|
||||||
public versionMask?: string | null;
|
public versionMask?: string | null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user