@clonegod/ttd-sol-common 1.1.5 → 1.1.6
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.
|
@@ -731,6 +731,7 @@ class RpcClient {
|
|
|
731
731
|
return __awaiter(this, void 0, void 0, function* () {
|
|
732
732
|
const jito_send_tx_ext_srv_list = process.env.JITO_SEND_TX_EXT_SRV_LIST || '';
|
|
733
733
|
if ((0, dist_1.isEmpty)(jito_send_tx_ext_srv_list)) {
|
|
734
|
+
(0, dist_1.log_info)(`jito_send_tx_ext_srv_list is empty, process.env.JITO_SEND_TX_EXT_SRV_LIST=${jito_send_tx_ext_srv_list}`);
|
|
734
735
|
return;
|
|
735
736
|
}
|
|
736
737
|
const regionGroups = jito_send_tx_ext_srv_list.split(';').filter(Boolean);
|
|
@@ -738,6 +739,7 @@ class RpcClient {
|
|
|
738
739
|
const hosts = region_group.split(',');
|
|
739
740
|
const host = hosts[(0, dist_1.generateRandomNumber)(0, hosts.length - 1)];
|
|
740
741
|
const url = `http://${host}/solana/send_tx`;
|
|
742
|
+
(0, dist_1.log_info)(`redirect tx ${txid} to ${url}`);
|
|
741
743
|
(0, dist_1.postJSON)(url, {
|
|
742
744
|
encoding,
|
|
743
745
|
encoded_tx,
|