-
Notifications
You must be signed in to change notification settings - Fork 96
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
Remove "latest_settlement_block" from API #3151
Conversation
Reminder: Please consider backward compatibility when modifying the API specification.
Caused by: |
What would happen when calling |
If you refer to this line, this would pass. |
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.
Approved assuming this will be communicated to solvers on time.
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.
LG
Description
Recently we introduced a new database table to store all auction objects ->
competition_auctions
table. Note that this table does not contain fieldlatest_settlement_block
. The reason is that this field is actually deductible from other data in the database -> it's even deductible from blockchain. For a given block X, you can always know what is the latest block before block X where the last settlement was settled.Moreover,
latest_settlement_block
is now only used internally in solvable orders cache component of autopilot, so it's not actually a core autopilot information.This change opens the door to unify
auction
andcompetition_auctions
table with final goal of removingauction
table completely. Removes tech debt.Changes
latest_settlement_block
field from api and autopilotHow to test
All tests passing.
If you are worried about a transition period, removing a field shouldn't be problematic for deserializing old object containing
latest_settlement_block
.The only concern is that solvers needs to adjust their deserialize logic so it doesn't break. Will be notified in advance once approvals are collected.