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

Manual Kusama auction cache update. #4184

Merged
merged 2 commits into from
Dec 13, 2022
Merged

Manual Kusama auction cache update. #4184

merged 2 commits into from
Dec 13, 2022

Conversation

alfarok
Copy link
Contributor

@alfarok alfarok commented Dec 13, 2022

Same issue outlined in #4138, removing auction #65 for now as it did not start as scheduled.

This PR also updates previous block values that are in-progress (correctly) as the automation is not running for Kusama as long as invalid starting blocks are still being provided.

Polkadot is already up-to-date.

@alfarok alfarok added the A2 - Please Review Pull request is ready for review. label Dec 13, 2022
@alfarok alfarok requested a review from DrW3RK December 13, 2022 16:13
@alfarok alfarok self-assigned this Dec 13, 2022
@@ -184,7 +184,6 @@ async function GetAuctionBlocks(api, currentBlock, startBlock, chain) {
}
} catch (error) {
console.log(`Failure updating auction blocks on ${chain} at starting block ${startBlock}.`)
throw error.message;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Error messaging/handling is actually more clear without this throw:

Failure updating auction blocks on Kusama at starting block 15724800.

as opposed to

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Cannot read properties of null (reading '0')".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

@alfarok alfarok merged commit 38c72c3 into master Dec 13, 2022
@alfarok alfarok deleted the kusama-auction-removal branch December 13, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A2 - Please Review Pull request is ready for review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant