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

Asset supply mismatch triggered during unit tests #136

Closed
vikramrajkumar opened this issue Jan 18, 2017 · 4 comments
Closed

Asset supply mismatch triggered during unit tests #136

vikramrajkumar opened this issue Jan 18, 2017 · 4 comments

Comments

@vikramrajkumar
Copy link
Contributor

From @theoreticalbts on December 7, 2015 20:21

I get this edump() during unit test run:

1155794ms th_a       db_debug.cpp:82               debug_dump           ] total_balances[asset_id_type()].value: 0 core_asset_data.current_supply.value: 902

First, we need to fix it.

Second, our testing framework should flag this condition as fatal.

Copied from original issue: cryptonomex/graphene#474

@oxarbitrage
Copy link
Member

oxarbitrage commented Nov 27, 2017

i was checking into this issue to see if we can fix, a few considerations that may help us as issue is old and not very good detailed on where is happening:

./tests/chain_test -t operation_tests/balance_object_test

i am not totally sure if that solution will break something else so i am asking presenting it before making a PR.

any comment on the subject will be very appreciated.

@abitmore
Copy link
Member

Seems assets in force settlement orders and global settlement fund are not calculated?

@oxarbitrage
Copy link
Member

settlement orders, vesting balances, etc were added to the debug_dump() but it was not enough to fix this issue.
real reason of the fail is that the test allocates asset in the genesis initial balance and in the genesis vesting balance.

to pass the check all this need to be considered sending the genesis state to the call. this is done in #928

@oxarbitrage
Copy link
Member

closed by #928 more discussion inside pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants