-
Notifications
You must be signed in to change notification settings - Fork 92
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
Backport AVM 1.0 DB support to 2.6.2 #699
Conversation
8a6e7fa
to
0bdea2d
Compare
Codecov Report
@@ Coverage Diff @@
## hotfix/2.6.3 #699 +/- ##
================================================
+ Coverage 47.50% 48.78% +1.27%
================================================
Files 25 25
Lines 3873 3876 +3
================================================
+ Hits 1840 1891 +51
+ Misses 1752 1698 -54
- Partials 281 287 +6
Continue to review full report at Codecov.
|
13c130f
to
aa2b2ac
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.
The one-inner-txn limit in importer is weird, but I believe that is correct and good enough for now.
aa2b2ac
to
dfdf58a
Compare
} | ||
num := 0 | ||
for _, stxn := range stxns { | ||
participants = participate(participants, copyAddr(stxn.Txn.Sender)) |
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.
why copying address?
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.
It was being overwritten by the range
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.
Not sure I understand. stxn
- yes, it is overwritten and that's why it is an error to take a loop var address.
In the same time referencing to values is fine - they either fully copied (primitives) or shallow-copied and point to different underlying memory in case of slices/maps, like in this example https://play.golang.org/p/6yT1jFVJc3s
Summary
Update accounting to process inner transactions.
Update transaction participation table to find the root transaction by inner transaction participants.
Some of these changes are backported from these issues:
#656
#661
#675
Test Plan
Unit tests.