Merge pull request #14 from amphibia/BCN_mm_spend_fix

Fix for non-spendable merged mining reward
This commit is contained in:
amjuarez 2014-05-15 16:10:14 +00:00
commit 7c23c01d41

View file

@ -239,8 +239,7 @@ namespace cryptonote
crypto::public_key get_tx_pub_key_from_extra(const std::vector<uint8_t>& tx_extra)
{
std::vector<tx_extra_field> tx_extra_fields;
if (!parse_tx_extra(tx_extra, tx_extra_fields))
return null_pkey;
parse_tx_extra(tx_extra, tx_extra_fields);
tx_extra_pub_key pub_key_field;
if(!find_tx_extra_field_by_type(tx_extra_fields, pub_key_field))