-
Notifications
You must be signed in to change notification settings - Fork 649
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
Call check_call_orders not only when settlement_price changed #935
Comments
Specifically, these checks are NOT enough: bitshares-core/libraries/chain/asset_evaluator.cpp Lines 466 to 470 in 2d0d4bb
bitshares-core/libraries/chain/db_maint.cpp Line 923 in 2d0d4bb
|
Need to change to check like this:
|
Question: is it better to fix this directly, or fix with a new hard fork (actually only for testnet)? |
@pmconrad @jmjatlanta please comment. |
What we have added in the latest hardfork is an improvement. I agree that these additional cases should trigger a If I'm understanding your question correctly: A new hardfork check gives us more flexibility at low cost IMHO, and as always, can be removed if nothing triggers. I defer to you and @pmconrad as to deciding where in the release timeline this fix should be placed. |
Actually this can cause more serious issues, since it may incorrectly skip black swan checks, when combined with changes for BSIP31-34, we won't check for black swan when placing new limit orders after hf (probably a bad decision, too much performance related consideration led to poorer error tolerance), so when a new limit order is placed, collateral ratio of matching call order may be less than 100%... I'm not going to reason the final consequences, anyway, we'll fix this issue before production release, but it's less important (also perhaps no enough time) to make it perfect for testnet (where bad things may or may not happen). @pmconrad what's your opinion? |
Agree to include the fix now. |
Fixed with #965. |
Actually changing either of these fields in
price_feed
struct should triggercheck_call_orders
:Another field is
maximum_short_squeeze_ratio
, seems no need to callcheck_call_orders
after it changed, but it's safe to check as well.The text was updated successfully, but these errors were encountered: