Переглянути джерело

[price_pusher] Sui pusher debugging messages (#1544)

* add logging

* version

* gr
Jayant Krishnamurthy 1 рік тому
батько
коміт
4966b956df

+ 1 - 1
apps/price_pusher/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@pythnetwork/price-pusher",
-  "version": "6.7.0",
+  "version": "6.7.1",
   "description": "Pyth Price Pusher",
   "homepage": "https://pyth.network",
   "main": "lib/index.js",

+ 6 - 0
apps/price_pusher/src/sui/sui.ts

@@ -488,11 +488,16 @@ export class SuiPricePusher implements IPricePusher {
           options: { showEffects: true },
         });
       } catch (e) {
+        console.log("Merge transaction failed with error:");
+        console.log(e);
+        console.log((e as any).data);
+        console.log(JSON.stringify(e));
         if (
           String(e).includes(
             "quorum of validators because of locked objects. Retried a conflicting transaction"
           )
         ) {
+          /*
           Object.values((e as any).data).forEach((lockedObjects: any) => {
             lockedObjects.forEach((lockedObject: [string, number, string]) => {
               lockedAddresses.add(lockedObject[0]);
@@ -500,6 +505,7 @@ export class SuiPricePusher implements IPricePusher {
           });
           // retry merging without the locked coins
           i--;
+           */
           continue;
         }
         throw e;

+ 1 - 1
package-lock.json

@@ -47,7 +47,7 @@
     },
     "apps/price_pusher": {
       "name": "@pythnetwork/price-pusher",
-      "version": "6.7.0",
+      "version": "6.7.1",
       "license": "Apache-2.0",
       "dependencies": {
         "@injectivelabs/sdk-ts": "1.10.72",