From 1070b198f62883ba7a60d003075f161b9e86f3ee Mon Sep 17 00:00:00 2001 From: Vikram Rajkumar Date: Wed, 22 Oct 2014 18:53:23 -0400 Subject: [PATCH] Set new market_status last and current feed prices in current market engine before next hardfork --- libraries/blockchain/market_engine_v6.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/blockchain/market_engine_v6.cpp b/libraries/blockchain/market_engine_v6.cpp index 8f2a8e957..aff5fb88f 100644 --- a/libraries/blockchain/market_engine_v6.cpp +++ b/libraries/blockchain/market_engine_v6.cpp @@ -272,9 +272,9 @@ namespace bts { namespace blockchain { namespace detail { _pending_state->store_asset_record( *quote_asset ); _pending_state->store_asset_record( *base_asset ); - _market_stat.last_error.reset(); - // Update market status and market history + _market_stat.update_feed_price( median_feed_price ); + _market_stat.last_error.reset(); _pending_state->store_market_status( _market_stat ); update_market_history( trading_volume, opening_price, closing_price, timestamp );