@clonegod/ttd-sol-common 1.0.56 → 1.0.58
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.
|
@@ -64,7 +64,6 @@ class AppConfig extends events_1.EventEmitter {
|
|
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
this.arb_event_subscriber = (0, dist_1.getArbEventSubscriber)(this.arb_cache);
|
|
66
66
|
yield this.arb_event_subscriber.pre_load_config_cache();
|
|
67
|
-
yield this.arb_event_subscriber.subscribe_config_change_event();
|
|
68
67
|
const refresh_trade_runtime = (is_sussess, event) => __awaiter(this, void 0, void 0, function* () {
|
|
69
68
|
(0, dist_1.log_info)(`subscribe_config_change_event, callback`, { is_sussess, event });
|
|
70
69
|
if (event.event_type === dist_1.REDIS_EVENT_TYPE_CONFIG_CHANGE.GROUP_CONFIG_CHANGE) {
|
|
@@ -573,7 +573,10 @@ class RpcClient {
|
|
|
573
573
|
let txid = (0, get_signature_1.getSignature)(transaction);
|
|
574
574
|
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
575
575
|
const serializedTransaction = bs58_1.default.encode(transaction.serialize());
|
|
576
|
-
|
|
576
|
+
let jitoApiUrl = `${types_1.JITO_API_URLS[region]}/api/v1/bundles`;
|
|
577
|
+
if (process.env.QUICKNODE_JITO_PLUGIN_URL) {
|
|
578
|
+
jitoApiUrl = process.env.QUICKNODE_JITO_PLUGIN_URL;
|
|
579
|
+
}
|
|
577
580
|
const bundleId = yield this.sendJitoBundle([serializedTransaction], jitoApiUrl);
|
|
578
581
|
(0, dist_1.log_info)(`sendJitoBundle`, {
|
|
579
582
|
txid,
|