@clonegod/ttd-sol-common 1.0.119 → 1.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -581,11 +581,6 @@ class RpcClient {
|
|
|
581
581
|
let jitoApiUrl = `${types_1.JITO_API_URLS[region]}/api/v1/bundles`;
|
|
582
582
|
const bundleId = yield this.send_tx_to_all_jito_region(serializedTransaction, encoding);
|
|
583
583
|
this.try_get_bundle_failed_result(txid, bundleId);
|
|
584
|
-
(0, dist_1.log_info)(`sendJitoBundle finish`, {
|
|
585
|
-
jitoApiUrl,
|
|
586
|
-
txid,
|
|
587
|
-
bundleId
|
|
588
|
-
});
|
|
589
584
|
const currentBlockHeight = yield solana_trade_runtime.connection.getBlockHeight();
|
|
590
585
|
const lastValidBlockHeight = Math.min(blockhash.lastValidBlockHeight, currentBlockHeight + lastValidBlockHeightOffset);
|
|
591
586
|
const timeout = 10000;
|
|
@@ -823,7 +818,7 @@ class RpcClient {
|
|
|
823
818
|
params: {
|
|
824
819
|
result: {
|
|
825
820
|
signature: txid,
|
|
826
|
-
slot:
|
|
821
|
+
slot: 0,
|
|
827
822
|
transaction: {
|
|
828
823
|
transaction: {
|
|
829
824
|
signatures: [txid]
|
|
@@ -84,8 +84,8 @@ class TransactionResultChecker {
|
|
|
84
84
|
check_tx_result_interval() {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
const check_start_time = Date.now();
|
|
87
|
-
const check_interval = parseInt(process.env.CHECK_TX_RESULT_INTERVAL_MILLS || '
|
|
88
|
-
const check_timeout = parseInt(process.env.CHECK_TX_RESULT_TIMEOUT_MILLS || '
|
|
87
|
+
const check_interval = parseInt(process.env.CHECK_TX_RESULT_INTERVAL_MILLS || '2000');
|
|
88
|
+
const check_timeout = parseInt(process.env.CHECK_TX_RESULT_TIMEOUT_MILLS || '10000');
|
|
89
89
|
const intervalId = setInterval(() => __awaiter(this, void 0, void 0, function* () {
|
|
90
90
|
this.check_count += 1;
|
|
91
91
|
(0, dist_1.log_info)(`check transaction start: seq=[${this.check_count}], txhash= ${this.txid}, trace_id=${this.trace_id}`);
|
|
@@ -42,7 +42,7 @@ class TransactionResultParser {
|
|
|
42
42
|
}
|
|
43
43
|
const base_fee = 5000;
|
|
44
44
|
const total_fee = preBalances[0] - postBalances[0];
|
|
45
|
-
const priority_fee = total_fee - base_fee;
|
|
45
|
+
const priority_fee = Math.abs(total_fee - base_fee);
|
|
46
46
|
let gas_fee = {
|
|
47
47
|
base_fee,
|
|
48
48
|
priority_fee,
|