You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The maximum number of transactions in a Jito bundle.
31
+
*/
32
+
exportconstJITO_BUNDLE_SIZE=5;
33
+
29
34
/**
30
35
* An instruction with some extra information that will be used to build transactions.
31
36
*/
@@ -46,7 +51,6 @@ export type PriorityFeeConfig = {
46
51
computeUnitPriceMicroLamports?: number;
47
52
tightComputeBudget?: boolean;
48
53
jitoTipLamports?: number;
49
-
jitoBundleSize?: number;
50
54
};
51
55
52
56
/**
@@ -188,7 +192,11 @@ export class TransactionBuilder {
188
192
this.transactionInstructions.length-1
189
193
].instructions,
190
194
instruction,
191
-
buildJitoTipInstruction(this.payer,1),
195
+
this.transactionInstructions.length%JITO_BUNDLE_SIZE===0// This transaction may be the first of a Jito bundle, so we leave room for a Jito tip transfer.
0 commit comments