Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d087b57

Browse files
author
Tyera Eulberg
authored
Accommodate upstream web3.js changes in twotx patch (#3140)
1 parent 9ef3fd8 commit d087b57

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

token/twoxtx.patch

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,18 @@ index efea219043..473a92ecfe 100644
6666

6767
bitflags! {
6868
#[repr(C)]
69-
diff --git a/web3.js/src/transaction.ts b/web3.js/src/transaction.ts
70-
index 5466464f5a..5b71b9dc39 100644
71-
--- a/web3.js/src/transaction.ts
72-
+++ b/web3.js/src/transaction.ts
73-
@@ -29,8 +29,10 @@ const DEFAULT_SIGNATURE = Buffer.alloc(64).fill(0);
74-
* 1280 is IPv6 minimum MTU
69+
diff --git a/web3.js/src/transaction-constants.ts b/web3.js/src/transaction-constants.ts
70+
index 591873f8b6..f94d5778ba 100644
71+
--- a/web3.js/src/transaction-constants.ts
72+
+++ b/web3.js/src/transaction-constants.ts
73+
@@ -5,6 +5,6 @@
7574
* 40 bytes is the size of the IPv6 header
7675
* 8 bytes is the size of the fragment header
77-
+ *
78-
+ * Double the minimum to support larger than MTU transactions
7976
*/
8077
-export const PACKET_DATA_SIZE = 1280 - 40 - 8;
8178
+export const PACKET_DATA_SIZE = 2464;
8279

83-
const SIGNATURE_LENGTH = 64;
80+
export const SIGNATURE_LENGTH_IN_BYTES = 64;
8481

8582
--
8683
2.32.0 (Apple Git-132)

0 commit comments

Comments
 (0)