fix warning, add debug for svk
This commit is contained in:
parent
9dc7189dd6
commit
ede41d6f99
2 changed files with 6 additions and 6 deletions
|
|
@ -22,7 +22,7 @@
|
|||
namespace graphene { namespace chain {
|
||||
|
||||
class database;
|
||||
class signed_transaction;
|
||||
struct signed_transaction;
|
||||
class generic_evaluator;
|
||||
class transaction_evaluation_state;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>( [&]( bucket_object& b ){
|
||||
const auto& obj = db.create<bucket_object>( [&]( 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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue