Skip to content

Commit

Permalink
Market his: change by_id index to ordered_unique
Browse files Browse the repository at this point in the history
Perhaps fixes bitshares#185.
  • Loading branch information
theoreticalbts authored and abitmore committed Nov 13, 2017
1 parent 5ee5642 commit 07ed6f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ struct by_key;
typedef multi_index_container<
bucket_object,
indexed_by<
hashed_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
ordered_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
ordered_unique< tag<by_key>, member< bucket_object, bucket_key, &bucket_object::key > >
>
> bucket_object_multi_index_type;
Expand All @@ -136,7 +136,7 @@ struct by_market_time;
typedef multi_index_container<
order_history_object,
indexed_by<
hashed_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
ordered_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
ordered_unique< tag<by_key>, member< order_history_object, history_key, &order_history_object::key > >,
ordered_unique<
tag<by_market_time>,
Expand Down

0 comments on commit 07ed6f1

Please sign in to comment.