Not to merge: rename circulating supply to total supply #1461
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For context:
#1460
filecoin-project/fvm-workbench#33
Total supply should be calculable by summing up all actors' balances.
It's current use in check_invariants is probably conceptually wrong. An externally calculated/predetermined total_supply should be passed as a parameter into check_invariants. This raises the question whether
set_total_supply
needs to exist.The check_invariants probably doesn't need to do the total_supply check. It should be enforced by the VM. Since the TestVM is implemented here however, there's value in testing its compliance - but that should be in specific unit tests of the TestVM rather than in every integration test (that should target the actors behaviour).
I think the VM should expose: