cmake: fix undefined symbols and multiple definitions

This commit is contained in:
anon 2021-04-27 12:06:42 +00:00 committed by selsta
parent 14be80f992
commit fe76d7dee7
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
6 changed files with 66 additions and 16 deletions

View file

@ -139,22 +139,6 @@ namespace cryptonote
return h;
}
//---------------------------------------------------------------
void get_transaction_prefix_hash(const transaction_prefix& tx, crypto::hash& h)
{
std::ostringstream s;
binary_archive<true> a(s);
::serialization::serialize(a, const_cast<transaction_prefix&>(tx));
crypto::cn_fast_hash(s.str().data(), s.str().size(), h);
}
//---------------------------------------------------------------
crypto::hash get_transaction_prefix_hash(const transaction_prefix& tx)
{
crypto::hash h = null_hash;
get_transaction_prefix_hash(tx, h);
return h;
}
//---------------------------------------------------------------
bool expand_transaction_1(transaction &tx, bool base_only)
{
if (tx.version >= 2 && !is_coinbase(tx))