-
Notifications
You must be signed in to change notification settings - Fork 114
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
Avm now handles "pure" balance transfers #848
Conversation
93840d6
to
284c1cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks pretty sane. have some questions/suggestions in-line; they're not really blockers for me, but take a look before pushing.
I won't have time to do the assertThat change, I'll try to keep it in mind in the future |
nextBatchToExecute = | ||
fetchNextBatchOfTransactionsForAionVirtualMachine(currentIndex); | ||
fetchNextBatchOfTransactionsForFastVirtualMachine(currentIndex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason for reversing avm fvm order in the if-else condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just seems more natural to do if (condition)
instead of if (!condition)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pending corrections to the formatting
please fix the conflict. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM. We merge it after the conflict been fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't take a very close look, but it looks good to me!
- These consensus tests anticipate the next commit, which seeks to move "pure balance transfers" to the Avm instead of the Fvm. - These are also just going to be valuable to have going forward.
- A pure balance transfer is just a balance transfer to a non-contract address. Formerly these were handled by the Fvm, now they are handled by the Avm.
b177d64
to
c843595
Compare
Description
BulkExecutor
; namely, removing the unnecessaryisTransactionForFvm()
method which must simply return!isTransactionForAvm()
.BulkExecutor
, which only does these actions if the transaction is not avm-bound.The actual changes to logic are in commit b177d64 (the other commit, b61bc8c contains tests).
Type of change
Insert x into the following checkboxes to confirm (eg. [x]):
Testing
Please describe the tests you used to validate this pull request. Provide any relevant details for test configurations as well as any instructions to reproduce these results.
Verification
Insert x into the following checkboxes to confirm (eg. [x]):