-
Notifications
You must be signed in to change notification settings - Fork 152
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
Patch/transaction ordering update #1326
Patch/transaction ordering update #1326
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1326 +/- ##
==========================================
- Coverage 86.03% 76.93% -9.11%
==========================================
Files 361 253 -108
Lines 32457 17082 -15375
==========================================
- Hits 27925 13142 -14783
- Misses 2747 3410 +663
+ Partials 1785 530 -1255
|
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.
Can you please add a test case for this change? It would be great the added test fails at previous protocol, and pass at modified protocol.
And it would be great to have changelog describing this patch (in behavioral changes section).
/rebase |
de98c7d
to
ed604d2
Compare
ed604d2
to
025a55f
Compare
See 89a0add. Hard coded spec is added to ensure that there is no behavioral change between the new optimized V0 implementation and the old implementation.
Previous protocol doesn't "fail" per se, but does not work as intended. This is described in more detail in #1323. Statistical analysis may be done, but I don't see much point in doing so, and I'm not sure such test should be a part of unit testing. 😶
See 025a55f. |
/rebase |
868ee29
to
164c213
Compare
@greymistcube it has a conflicting file... |
164c213
to
4bf485a
Compare
@longfin Resolved. |
94930a1
to
2bf6773
Compare
eda233a
to
c5a7652
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale |
c5a7652
to
336dd7e
Compare
/rebase |
023544f
to
6e4d373
Compare
Closes #1322
Closes #1323
Ordering
Transaction<T>
s for evaluation has been separated fromBlock<T>()
constructor asBlock<T>.OrderTxsForEvaluation()
static
method. Additionally, in preparation for #1314, a new ordering algorithm has been introduced. New algorithm will kick in onceProtocalVersion
gets increased to at least2
. Finally, pre-existing algorithm has been optimized for time and memory.Here are some scripted benchmark results: