1
0
Fork 0
forked from lthn/blockchain

purge_altblock_keyimages_from_big_heap() adapted for ZC inputs

This commit is contained in:
sowle 2022-10-02 00:39:01 +02:00
parent 657b1ceddf
commit 01a458b5bc
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 4 additions and 4 deletions

View file

@ -1642,7 +1642,7 @@ bool blockchain_storage::purge_altblock_keyimages_from_big_heap(const block& b,
{
if (tx.vin[n].type() == typeid(txin_to_key) || tx.vin[n].type() == typeid(txin_htlc))
{
purge_keyimage_from_big_heap(get_to_key_input_from_txin_v(tx.vin[n]).k_image, block_id);
purge_keyimage_from_big_heap(get_key_image_txin_v(tx.vin[n]), block_id);
}
else if (tx.vin[n].type() == typeid(txin_zc_input))
{

View file

@ -168,7 +168,7 @@ namespace currency
}
//---------------------------------------------------------------
inline
const crypto::key_image & get_key_image_txin_v(const txin_v& in_v)
const crypto::key_image & get_key_image_txin_v(const txin_v& in_v)
{
if (in_v.type() == typeid(txin_to_key))
{
@ -184,10 +184,10 @@ namespace currency
}
else
{
ASSERT_MES_AND_THROW("[get_to_key_input_from_txin_v] Wrong type " << in_v.type().name());
ASSERT_MES_AND_THROW("[get_key_image_txin_v] Wrong type: " << in_v.type().name());
}
}
//---------------------------------------------------------------
//, txin_htlc, txin_zc_input
inline bool compare_variant_by_types(const txin_multisig& left, const txin_multisig& right)
{