[price_pusher] Sui pusher debugging messages (#1544)
* add logging * version * gr
This commit is contained in:
parent
10dc4a05b8
commit
4966b956df
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue