1
0
Fork 0
forked from lthn/blockchain

fix alias update signature buffer for upcoming auditable wallets and hf2

This commit is contained in:
sowle 2020-06-10 19:52:39 +03:00
parent a95316bfb7
commit 02cd60e85d
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -419,15 +419,10 @@ namespace currency
//---------------------------------------------------------------
crypto::hash get_sign_buff_hash_for_alias_update(const extra_alias_entry& ai)
{
const extra_alias_entry* pale = &ai;
extra_alias_entry eae_local = AUTO_VAL_INIT(eae_local);
if (ai.m_sign.size())
{
eae_local = ai;
eae_local.m_sign.clear();
pale = &eae_local;
}
return get_object_hash(*pale);
extra_alias_entry_old ai_old = ai.to_old();
if (ai_old.m_sign.size())
ai_old.m_sign.clear();
return get_object_hash(ai_old);
}
//---------------------------------------------------------------
struct tx_extra_handler : public boost::static_visitor<bool>