Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[price_pusher] Sui pusher debugging messages #1544

Merged
merged 4 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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--;
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something in this block above is what's throwing right now. I think it's ok to actually skip this entire batch of coins in the merging process though, so let's comment it out and see if that fixes the issue.

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.

Loading