fix: increase PACKET_DATA_SIZE to match Solana v0.15.0

This commit is contained in:
Michael Vines 2019-05-28 08:51:46 -07:00
parent 9f8fc5b260
commit d000485f7c
1 changed files with 5 additions and 1 deletions

View File

@ -18,8 +18,12 @@ export type TransactionSignature = string;
/**
* Maximum over-the-wire size of a Transaction
*
* 1280 is IPv6 minimum MTU
* 40 bytes is the size of the IPv6 header
* 8 bytes is the size of the fragment header
*/
export const PACKET_DATA_SIZE = 512;
export const PACKET_DATA_SIZE = 1280 - 40 - 8;
/**
* List of TransactionInstruction object fields that may be initialized at construction