Merge pull request #9884

7cb406e05 cryptonote_basic: is_coinbase() take prefix (jeffro256)
This commit is contained in:
tobtoht 2025-04-23 16:07:39 +00:00
commit 22627363a4
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472
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);