Skip to content

Commit

Permalink
[price_pusher] Sui pusher debugging messages (#1544)
Browse files Browse the repository at this point in the history
* add logging

* version

* gr
  • Loading branch information
jayantk authored May 4, 2024
1 parent 10dc4a0 commit 4966b95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/price_pusher/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions apps/price_pusher/src/sui/sui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,18 +488,24 @@ 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]);
});
});
// retry merging without the locked coins
i--;
*/
continue;
}
throw e;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4966b95

Please sign in to comment.