From d000485f7c065fda3d435dcdd7de13de50ffbad4 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 28 May 2019 08:51:46 -0700 Subject: [PATCH] fix: increase PACKET_DATA_SIZE to match Solana v0.15.0 --- web3.js/src/transaction.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web3.js/src/transaction.js b/web3.js/src/transaction.js index a616621483..df7cbeafd5 100644 --- a/web3.js/src/transaction.js +++ b/web3.js/src/transaction.js @@ -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