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

Commit

Permalink
Merge pull request #160 from EOSIO/nathan-misc
Browse files Browse the repository at this point in the history
Ref #91: Fix ordered_non_unique index
  • Loading branch information
bytemaster authored Aug 15, 2017
2 parents 5819d26 + 9d4384a commit ae26e96
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 ae26e96

Please sign in to comment.