mirror of
https://github.com/monero-project/monero.git
synced 2025-08-22 00:29:34 -04:00
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:
parent
977dedce2c
commit
7cb406e05a
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ namespace cryptonote {
|
||||||
return tools::base58::encode_addr(integrated_address_prefix, t_serializable_object_to_blob(iadr));
|
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)
|
if(tx.vin.size() != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -108,7 +108,7 @@ namespace cryptonote {
|
||||||
, std::function<std::string(const std::string&, const std::vector<std::string>&, bool)> dns_confirm = return_first_address
|
, 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::transaction& a, const cryptonote::transaction& b);
|
||||||
bool operator ==(const cryptonote::block& a, const cryptonote::block& b);
|
bool operator ==(const cryptonote::block& a, const cryptonote::block& b);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue