Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean old style codes #1250

Merged
merged 3 commits into from Aug 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/chain/protocol/fee_schedule.cpp
Expand Up @@ -88,7 +88,7 @@ namespace graphene { namespace chain {
{
try {
return op.calculate_fee( param.get<OpType>() ).value;
} catch (fc::assert_exception e) {
} catch (fc::assert_exception& e) {
fee_parameters params; params.set_which(current_op);
auto itr = param.parameters.find(params);
if( itr != param.parameters.end() ) params = *itr;
Expand Down
2 changes: 1 addition & 1 deletion libraries/db/include/graphene/db/generic_index.hpp
Expand Up @@ -73,7 +73,7 @@ namespace graphene { namespace chain {
[&m, &exc](ObjectType& o) mutable {
try {
m(o);
} catch (fc::exception e) {
} catch (fc::exception& e) {
exc = std::current_exception();
elog("Exception while modifying object: ${e} -- object may be corrupted",
("e", e));
Expand Down
4 changes: 2 additions & 2 deletions libraries/plugins/market_history/market_history_plugin.cpp
Expand Up @@ -247,12 +247,12 @@ struct operation_process_fill_order
db.modify( *bucket_itr, [&]( bucket_object& b ){
try {
b.base_volume += trade_price.base.amount;
} catch( fc::overflow_exception ) {
} catch( fc::overflow_exception& ) {
b.base_volume = std::numeric_limits<int64_t>::max();
}
try {
b.quote_volume += trade_price.quote.amount;
} catch( fc::overflow_exception ) {
} catch( fc::overflow_exception& ) {
b.quote_volume = std::numeric_limits<int64_t>::max();
}
b.close_base = fill_price.base.amount;
Expand Down