cryptonote_basic: is_coinbase() take prefix

Useful for wallet business logic, which stores the prefixes in `m_transfers`, not the whole transaction.
This commit is contained in:
jeffro256 2025-04-02 11:01:24 -05:00
parent 977dedce2c
commit 7cb406e05a
No known key found for this signature in database
GPG key ID: 6F79797A6E392442
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ namespace cryptonote {
return tools::base58::encode_addr(integrated_address_prefix, t_serializable_object_to_blob(iadr));
}
//-----------------------------------------------------------------------
bool is_coinbase(const transaction& tx)
bool is_coinbase(const transaction_prefix& tx)
{
if(tx.vin.size() != 1)
return false;

View file

@ -108,7 +108,7 @@ namespace cryptonote {
, std::function<std::string(const std::string&, const std::vector<std::string>&, bool)> dns_confirm = return_first_address
);
bool is_coinbase(const transaction& tx);
bool is_coinbase(const transaction_prefix& tx);
bool operator ==(const cryptonote::transaction& a, const cryptonote::transaction& b);
bool operator ==(const cryptonote::block& a, const cryptonote::block& b);