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 {
|
namespace graphene { namespace chain {
|
||||||
|
|
||||||
class database;
|
class database;
|
||||||
class signed_transaction;
|
struct signed_transaction;
|
||||||
class generic_evaluator;
|
class generic_evaluator;
|
||||||
class transaction_evaluation_state;
|
class transaction_evaluation_state;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ struct operation_process_fill_order
|
||||||
auto itr = by_key_idx.find( key );
|
auto itr = by_key_idx.find( key );
|
||||||
if( itr == by_key_idx.end() )
|
if( itr == by_key_idx.end() )
|
||||||
{ // create new bucket
|
{ // create new bucket
|
||||||
db.create<bucket_object>( [&]( bucket_object& b ){
|
const auto& obj = db.create<bucket_object>( [&]( bucket_object& b ){
|
||||||
b.key = key;
|
b.key = key;
|
||||||
b.quote_volume += trade_price.quote.amount;
|
b.quote_volume += trade_price.quote.amount;
|
||||||
b.base_volume += trade_price.base.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_base = b.close_base;
|
||||||
b.low_quote = b.close_quote;
|
b.low_quote = b.close_quote;
|
||||||
});
|
});
|
||||||
//wlog( " creating bucket ${b}", ("b",obj) );
|
wlog( " creating bucket ${b}", ("b",obj) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // update existing bucket
|
{ // update existing bucket
|
||||||
// wlog( " before updating bucket ${b}", ("b",*itr) );
|
wlog( " before updating bucket ${b}", ("b",*itr) );
|
||||||
db.modify( *itr, [&]( bucket_object& b ){
|
db.modify( *itr, [&]( bucket_object& b ){
|
||||||
b.base_volume += trade_price.base.amount;
|
b.base_volume += trade_price.base.amount;
|
||||||
b.quote_volume += trade_price.quote.amount;
|
b.quote_volume += trade_price.quote.amount;
|
||||||
|
|
@ -140,7 +140,7 @@ struct operation_process_fill_order
|
||||||
b.low_quote = b.close_quote;
|
b.low_quote = b.close_quote;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// wlog( " after bucket bucket ${b}", ("b",*itr) );
|
wlog( " after bucket bucket ${b}", ("b",*itr) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( max_history != 0 )
|
if( max_history != 0 )
|
||||||
|
|
@ -154,7 +154,7 @@ struct operation_process_fill_order
|
||||||
itr->key.seconds == bucket &&
|
itr->key.seconds == bucket &&
|
||||||
itr->key.open < cutoff )
|
itr->key.open < cutoff )
|
||||||
{
|
{
|
||||||
// elog( " removing old bucket ${b}", ("b", *itr) );
|
elog( " removing old bucket ${b}", ("b", *itr) );
|
||||||
auto old_itr = itr;
|
auto old_itr = itr;
|
||||||
++itr;
|
++itr;
|
||||||
db.remove( *old_itr );
|
db.remove( *old_itr );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue