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

tally command line tool to sanity check vm #5173

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dshulyak
Copy link
Contributor

compile it and run with any address:

./tally -db state.sql -acc sm1qqqqqqpy8svgfxfhh2w42ujhrynsxgwsrrzgplss9t0lv
address=sm1qqqqqqpy8svgfxfhh2w42ujhrynsxgwsrrzgplss9t0lv
layer=27658
earned=1549272967127595
rewards=0
spent=1075931911672603
tally=473341055454992
account=473341055454992

@brunovale91
Copy link

@dshulyak do ineffective transaction have a status different from types.TransactionSuccess?

@dshulyak
Copy link
Contributor Author

all effective transactions should have a result. transaction ineffective if it is included in the block and block was applied, but has no result (e.g field in db is null)

select distinct id, tx, header, result
from transactions
left join transactions_results_addresses on id=tid
where result is not null

@brunovale91
Copy link

all effective transactions should have a result. transaction ineffective if it is included in the block and block was applied, but has no result (e.g field in db is null)

select distinct id, tx, header, result
from transactions
left join transactions_results_addresses on id=tid
where result is not null

Thanks for the explanation.

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9ef05a8) 77.7% compared to head (e1d87ee) 77.5%.
Report is 146 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #5173     +/-   ##
=========================================
- Coverage     77.7%   77.5%   -0.3%     
=========================================
  Files          259     265      +6     
  Lines        30765   30873    +108     
=========================================
+ Hits         23912   23929     +17     
- Misses        5362    5425     +63     
- Partials      1491    1519     +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

None yet

2 participants