mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 21:31:42 +01:00
version mask
This commit is contained in:
parent
278e796d5b
commit
50b4230191
@ -1,5 +1,5 @@
|
||||
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 { StratumBaseMessage } from './StratumBaseMessage';
|
||||
@ -43,10 +43,9 @@ export class MiningSubmitMessage extends StratumBaseMessage {
|
||||
public nonce: string
|
||||
|
||||
@Expose()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@Transform(({ value, key, obj, type }) => {
|
||||
return obj.params[5];
|
||||
return obj.params[5] == null ? 0 : obj.params[5];
|
||||
})
|
||||
public versionMask?: string | null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user