Issue375 - slow comparison of public_key_type
This commit is contained in:
parent
ecd14b8329
commit
95d150de01
2 changed files with 7 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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(){};
|
||||
|
|
|
|||
Loading…
Reference in a new issue