From 4966b956df4f052a6f06b45c2f84895f8caaf601 Mon Sep 17 00:00:00 2001 From: Jayant Krishnamurthy Date: Fri, 3 May 2024 18:04:43 -0700 Subject: [PATCH] [price_pusher] Sui pusher debugging messages (#1544) * add logging * version * gr --- apps/price_pusher/package.json | 2 +- apps/price_pusher/src/sui/sui.ts | 6 ++++++ package-lock.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/price_pusher/package.json b/apps/price_pusher/package.json index 8ea34bceae..1f22544038 100644 --- a/apps/price_pusher/package.json +++ b/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", diff --git a/apps/price_pusher/src/sui/sui.ts b/apps/price_pusher/src/sui/sui.ts index 31d4f21a15..cbdf0234b6 100644 --- a/apps/price_pusher/src/sui/sui.ts +++ b/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; diff --git a/package-lock.json b/package-lock.json index c65c4b3c33..4b433af7be 100644 --- a/package-lock.json +++ b/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",