[price_pusher] Sui pusher debugging messages (#1544)

* add logging

* version

* gr
This commit is contained in:
Jayant Krishnamurthy 2024-05-03 18:04:43 -07:00 committed by GitHub
parent 10dc4a05b8
commit 4966b956df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -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",

View File

@ -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;

2
package-lock.json generated
View File

@ -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",