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

Ref #91: Fix ordered_non_unique index #160

Merged
merged 1 commit into from
Aug 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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