Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions libraries/chain/include/graphene/chain/protocol/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ namespace graphene { namespace chain {
friend bool operator == ( const public_key_type& p1, const fc::ecc::public_key& p2);
friend bool operator == ( const public_key_type& p1, const public_key_type& p2);
friend bool operator != ( const public_key_type& p1, const public_key_type& p2);
friend bool operator < ( const public_key_type& p1, const public_key_type& p2);
// TODO: This is temporary for testing
bool is_valid_v1( const std::string& base58str );
bool is_valid_muse( const std::string& base58str );
Expand Down
7 changes: 6 additions & 1 deletion libraries/chain/protocol/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ namespace graphene { namespace chain {
{
return p1.key_data != p2.key_data;
}


bool operator < ( const public_key_type& p1, const public_key_type& p2)
{
return p1.key_data < p2.key_data;
}

// extended_public_key_type

extended_public_key_type::extended_public_key_type():key_data(){};
Expand Down