Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Ref #91: Fix ordered_non_unique index
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielhourt committed Aug 10, 2017
1 parent ce52012 commit 9d4384a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libraries/chain/include/eos/chain/producer_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ using producer_multi_index = chainbase::shared_multi_index_container<
indexed_by<
ordered_unique<tag<by_id>, member<producer_object, producer_object::id_type, &producer_object::id>>,
ordered_unique<tag<by_owner>, member<producer_object, AccountName, &producer_object::owner>>,
#warning using ordered_non_unique is not deterministic
ordered_non_unique<tag<by_key>, member<producer_object, public_key_type, &producer_object::signing_key>>
ordered_unique<tag<by_key>,
composite_key<producer_object,
member<producer_object, public_key_type, &producer_object::signing_key>,
member<producer_object, producer_object::id_type, &producer_object::id>
>
>
>
>;

Expand Down

0 comments on commit 9d4384a

Please sign in to comment.