1
0
Fork 0
forked from lthn/blockchain

fixed undefined references

This commit is contained in:
cryptozoidberg 2022-06-27 22:30:49 +02:00
parent edd7eaca95
commit a90c9931dd
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -3318,10 +3318,11 @@ namespace currency
bool operator ==(const currency::transaction& a, const currency::transaction& b) {
return currency::get_transaction_hash(a) == currency::get_transaction_hash(b);
}
//--------------------------------------------------------------------------------
bool operator ==(const currency::block& a, const currency::block& b) {
return currency::get_block_hash(a) == currency::get_block_hash(b);
}
//--------------------------------------------------------------------------------
bool operator ==(const currency::extra_attachment_info& a, const currency::extra_attachment_info& b)
{
if (a.cnt == b.cnt && a.hsh == b.hsh && a.sz == b.sz)
@ -3329,7 +3330,24 @@ namespace currency
else
return false;
}
//--------------------------------------------------------------------------------
bool operator ==(const currency::NLSAG_sig& a, const currency::NLSAG_sig& b)
{
return a.s == b.s;
}
//--------------------------------------------------------------------------------
bool operator ==(const currency::void_sig& a, const currency::void_sig& b)
{
//@#@
return false;
}
//--------------------------------------------------------------------------------
bool operator ==(const currency::zarcanum_sig& a, const currency::zarcanum_sig& b)
{
//@#@ TODO
return false;
}
//--------------------------------------------------------------------------------
boost::multiprecision::uint1024_t get_a_to_b_relative_cumulative_difficulty(const wide_difficulty_type& difficulty_pos_at_split_point,
const wide_difficulty_type& difficulty_pow_at_split_point,