From ede41d6f995d83778c5ffae4985363bb631cc995 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Tue, 30 Jun 2015 17:34:46 -0400 Subject: [PATCH] fix warning, add debug for svk --- libraries/chain/include/graphene/chain/evaluator.hpp | 2 +- .../plugins/market_history/market_history_plugin.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/chain/include/graphene/chain/evaluator.hpp b/libraries/chain/include/graphene/chain/evaluator.hpp index aebbe260..e42c312b 100644 --- a/libraries/chain/include/graphene/chain/evaluator.hpp +++ b/libraries/chain/include/graphene/chain/evaluator.hpp @@ -22,7 +22,7 @@ namespace graphene { namespace chain { class database; - class signed_transaction; + struct signed_transaction; class generic_evaluator; class transaction_evaluation_state; diff --git a/libraries/plugins/market_history/market_history_plugin.cpp b/libraries/plugins/market_history/market_history_plugin.cpp index f5662021..0ca55aec 100644 --- a/libraries/plugins/market_history/market_history_plugin.cpp +++ b/libraries/plugins/market_history/market_history_plugin.cpp @@ -106,7 +106,7 @@ struct operation_process_fill_order auto itr = by_key_idx.find( key ); if( itr == by_key_idx.end() ) { // create new bucket - db.create( [&]( bucket_object& b ){ + const auto& obj = db.create( [&]( bucket_object& b ){ b.key = key; b.quote_volume += trade_price.quote.amount; b.base_volume += trade_price.base.amount; @@ -119,11 +119,11 @@ struct operation_process_fill_order b.low_base = b.close_base; b.low_quote = b.close_quote; }); - //wlog( " creating bucket ${b}", ("b",obj) ); + wlog( " creating bucket ${b}", ("b",obj) ); } else { // update existing bucket - // wlog( " before updating bucket ${b}", ("b",*itr) ); + wlog( " before updating bucket ${b}", ("b",*itr) ); db.modify( *itr, [&]( bucket_object& b ){ b.base_volume += trade_price.base.amount; b.quote_volume += trade_price.quote.amount; @@ -140,7 +140,7 @@ struct operation_process_fill_order b.low_quote = b.close_quote; } }); - // wlog( " after bucket bucket ${b}", ("b",*itr) ); + wlog( " after bucket bucket ${b}", ("b",*itr) ); } if( max_history != 0 ) @@ -154,7 +154,7 @@ struct operation_process_fill_order itr->key.seconds == bucket && itr->key.open < cutoff ) { - // elog( " removing old bucket ${b}", ("b", *itr) ); + elog( " removing old bucket ${b}", ("b", *itr) ); auto old_itr = itr; ++itr; db.remove( *old_itr );