forked from lthn/blockchain
purge_altblock_keyimages_from_big_heap() adapted for ZC inputs
This commit is contained in:
parent
657b1ceddf
commit
01a458b5bc
2 changed files with 4 additions and 4 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue