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

enhancement: add wallet balance to logs #9

Open
danbryan opened this issue Aug 27, 2022 · 0 comments
Open

enhancement: add wallet balance to logs #9

danbryan opened this issue Aug 27, 2022 · 0 comments

Comments

@danbryan
Copy link
Contributor

I think it would be helpful to see the wallet balance in the logs.
Maybe something like append balance=5000ukuji to Msg("broadcasting pre-vote")

It could either do a q bank balance before every pre-vote or maybe it could be stored in a db and calculate the balance based on number of txs, with some condition to sanity check the balance after X calculations.

Something like this...

9:21PM INF broadcasting vote exchange_rates=10.206124343999644732ATOM feeder=kujira... module=oracle validator=kujiravaloper...
9:21PM INF successfully broadcasted tx module=oracle_client tx_code=0 tx_hash=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA tx_height=0
9:21PM INF broadcasting pre-vote feeder=kujira... hash=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa module=oracle validator=kujiravaloper... balance=5000ukuji
9:21PM INF successfully broadcasted tx module=oracle_client tx_code=0 tx_hash=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA tx_height=0
9:21PM INF skipping until next voting period current_vote_period=160998 module=oracle previous_vote_period=160998 vote_period=14

Or if the balance is low cfg.Account.balance_threshold do a WARN

mintthemoon added a commit that referenced this issue Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant