Merge branch 'develop' into release

This commit is contained in:
sowle 2025-06-10 15:07:25 +02:00
commit 79a3d416c1
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -134,9 +134,9 @@ bool generate_events(currency::core& c, cct_events_t& events, const cct_wallets_
if (it->type() == typeid(currency::transaction))
{
const transaction& tx = boost::get<const currency::transaction>(*it);
uint64_t max_used_block_height = 0;
r = bcs.check_tx_inputs(tx, get_transaction_hash(tx), max_used_block_height);
if (r && max_used_block_height <= prev_block.height)
blockchain_storage::check_tx_inputs_context ctic{};
r = bcs.check_tx_inputs(tx, get_transaction_hash(tx), ctic);
if (r && ctic.max_used_block_height <= prev_block.height)
txs.push_back(&tx); // filter out tx that are using too recent outputs -- yep, some txs will be dropped forever
}
else if (it->type() == typeid(currency::block))