fix: fix static properties in flow type declaration

This commit is contained in:
Justin Starry
2021-03-29 22:46:28 +08:00
committed by Justin Starry
parent 5f46ef7adc
commit a6b7dcb3c6
4 changed files with 18 additions and 20 deletions

View File

@@ -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