-
Notifications
You must be signed in to change notification settings - Fork 174
Collection of market issues #1443
Comments
There are actually two loops. The inner loop is a At this point in the code we want to stop the current pass and go on to the next pass. So The indentation is not so clear that there are two loops, mostly because I didn't want to muddy the waters on this commit with a bunch of whitespace changes to otherwise untouched lines. |
The TODO at market_engine.cpp#L57 was a reminder to myself to review corner cases in the iterator logic. I'm replacing it with a comment containing my analysis, see f6d2d56 The TODO at market_engine.cpp#L138-142 was a note to myself that, while this termination check was not optional in the commit that introduced it, it would be made optional by a planned later commit. Indeed we can see that if Actually on closer inspection, removing this check actually seems to fix a matching bug. With the check in place, With respect to the TODO at market_engine.cpp#L379-L382 -- this block of code was created in two places by 14d47ab, one was quickly removed in d076871. It seems that the intent was to dispatch to the logic to update |
About flagging chain_database.cpp#L2347-L2474 as a potential trouble spot -- nice code reviewing skills. @valzav yesterday reported a failing acceptance_test which, upon investigation, I determined to be failing due to incorrect logic in this section. It is now fixed in f93723d and everything else in this section seems to be correct. |
//EDIT: the comment below is incorrect. Just leave it here for reference. will this always return an empty iterator? Should it be something like |
@abitmore : I think what you're missing here is that shorts can only execute on one side of the feed (which side this is depends on which flipped market you're thinking about). Shorts that are on the "wrong side" aren't inactivated, rather they are clamped to shorting at the feed value. Those clamped shorts are in |
@theoreticalbts Thanks for reply. I didn't know how the reverse iterator works (now I know). I guessed that it would start from the nearest short below feed_price and go down, but incorrectly assumed it would end at the parameter passed into the constructor of reverse_iterator, and misunderstood the |
This is a collection of market tickets that are still open. Some of these are already resolved in
develop
branch.The text was updated successfully, but these errors were encountered: