[bitshares/bitshares-core] Fix for Issue 868 — Reset feeds when changing the backing asset from one asset to another (#882)

jmjatlanta commented on this pull request.

> @@ -800,6 +800,82 @@ void update_and_match_call_orders( database& db )
wlog( «Done updating all call orders for hardfork core-343 at block ${n}», («n»,db.head_block_num()) );
}

+/******
+ * @brief cleanup feeds with wrong assets
+ *
+ * Prior to hardfork 868, switching a bitasset’s shorting asset would not reset its
+ * feeds. This method will run at the hardfork time, and erase (or nullify) feeds
+ * that have incorrect backing assets.
+ *

Done

Добавить комментарий