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

add logger for insufficiently funded accounts during construction #313

Merged

Conversation

lenny-hardenberg
Copy link
Contributor

Motivation

When running Rosetta CLI check:construction we might run into an infinite loop without any clear logs that tell us why we are in a loop. Specifically, this might happen when we are looking for a wallet/account with a certain balance, but none of our prefunded_accounts have sufficient funds.

Solution

Log "[number] account(s) insufficiently funded. Did you forget to fund? [list of addresses]" whenever we call find_balance and we are unable to match any balance.

Copy link

@yfl92 yfl92 left a comment

Choose a reason for hiding this comment

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

LGTM. cc @septerr

@lenny-hardenberg lenny-hardenberg merged commit 8bb20c9 into master Mar 30, 2021
@lenny-hardenberg lenny-hardenberg deleted the add-insufficient-funds-logging-in-construction branch March 30, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants