fix: fix static properties in flow type declaration
This commit is contained in:
committed by
Justin Starry
parent
5f46ef7adc
commit
a6b7dcb3c6
@@ -10,6 +10,13 @@ import {sleep} from './util/sleep';
|
||||
import type {Connection} from './connection';
|
||||
import {SystemProgram} from './system-program';
|
||||
|
||||
// Keep program chunks under PACKET_DATA_SIZE, leaving enough room for the
|
||||
// rest of the Transaction fields
|
||||
//
|
||||
// TODO: replace 300 with a proper constant for the size of the other
|
||||
// Transaction fields
|
||||
const CHUNK_SIZE = PACKET_DATA_SIZE - 300;
|
||||
|
||||
/**
|
||||
* Program loader interface
|
||||
*/
|
||||
@@ -22,14 +29,7 @@ export class Loader {
|
||||
/**
|
||||
* Amount of program data placed in each load Transaction
|
||||
*/
|
||||
static get chunkSize(): number {
|
||||
// Keep program chunks under PACKET_DATA_SIZE, leaving enough room for the
|
||||
// rest of the Transaction fields
|
||||
//
|
||||
// TODO: replace 300 with a proper constant for the size of the other
|
||||
// Transaction fields
|
||||
return PACKET_DATA_SIZE - 300;
|
||||
}
|
||||
static chunkSize: number = CHUNK_SIZE;
|
||||
|
||||
/**
|
||||
* Minimum number of signatures required to load a program not including
|
||||
|
||||
Reference in New Issue
Block a user