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
* Note: If the USE_ASYNC_TX_PROCESSING feature flag is disabled,
290
-
* wait for all transaction processing logic to complete before returning the transaction hash.
291
-
*/
292
-
returnawaitthis.sendRawTransactionProcessor(
293
-
transactionBuffer,
294
-
parsedTx,
295
-
networkGasPriceInWeiBars,
296
-
this.rawTxSynchronizeService,
297
-
requestDetails,
298
-
);
299
310
}
300
311
301
312
/**
@@ -484,6 +495,8 @@ export class TransactionService implements ITransactionService {
484
495
* @param {Buffer} transactionBuffer - The raw transaction data as a buffer.
485
496
* @param {EthersTransaction} parsedTx - The parsed Ethereum transaction object.
486
497
* @param {number} networkGasPriceInWeiBars - The current network gas price in wei bars.
498
+
* @param {RawTxSynchronizeService} rawTxSynchronizeService - The service for managing transaction locks.
499
+
* @param {string | null} lockSessionKey - The session key for the acquired lock, null if no lock was acquired.
487
500
* @param {RequestDetails} requestDetails - Details of the request for logging and tracking purposes.
488
501
* @returns {Promise<string | JsonRpcError>} A promise that resolves to the transaction hash if successful, or a JsonRpcError if an error occurs.
489
502
*/
@@ -492,6 +505,7 @@ export class TransactionService implements ITransactionService {
492
505
parsedTx: EthersTransaction,
493
506
networkGasPriceInWeiBars: number,
494
507
rawTxSynchronizeService: RawTxSynchronizeService,
508
+
lockSessionKey: string|null,
495
509
requestDetails: RequestDetails,
496
510
): Promise<string|JsonRpcError>{
497
511
letsendRawTransactionError: any;
@@ -507,6 +521,7 @@ export class TransactionService implements ITransactionService {
507
521
originalCallerAddress,
508
522
networkGasPriceInWeiBars,
509
523
rawTxSynchronizeService,
524
+
lockSessionKey,
510
525
requestDetails,
511
526
);
512
527
@@ -653,6 +668,8 @@ export class TransactionService implements ITransactionService {
653
668
* @param transactionBuffer The raw transaction buffer
654
669
* @param originalCallerAddress The address of the original caller
655
670
* @param networkGasPriceInWeiBars The current network gas price in wei bars
671
+
* @param rawTxSynchronizeService The service for managing transaction locks
672
+
* @param lockSessionKey The session key for the acquired lock, null if no lock was acquired
656
673
* @param requestDetails The request details for logging and tracking
657
674
* @returns {Promise<{txSubmitted: boolean, submittedTransactionId: string, error: any}>} A promise that resolves to an object containing transaction submission details
658
675
*/
@@ -661,6 +678,7 @@ export class TransactionService implements ITransactionService {
661
678
originalCallerAddress: string,
662
679
networkGasPriceInWeiBars: number,
663
680
rawTxSynchronizeService: RawTxSynchronizeService,
681
+
lockSessionKey: string|null,
664
682
requestDetails: RequestDetails,
665
683
): Promise<{
666
684
txSubmitted: boolean;
@@ -681,6 +699,7 @@ export class TransactionService implements ITransactionService {
0 commit comments