1
0
Fork 0
forked from lthn/blockchain

fixed scan_outputkeys_for_indexes overload

This commit is contained in:
cryptozoidberg 2021-01-07 15:04:45 +01:00
parent 0bb579769c
commit 902d4ffd43
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 3 additions and 1 deletions

View file

@ -6425,6 +6425,7 @@ bool blockchain_storage::validate_alt_block_txs(const block& b, const crypto::ha
uint64_t height = abei.height;
bool r = false;
std::set<crypto::hash> alt_chain_block_ids;
alt_chain_block_ids.insert(id);
// prepare data structure for output global indexes tracking within current alt chain

View file

@ -238,8 +238,9 @@ namespace currency
template<class visitor_t>
bool scan_outputkeys_for_indexes(const transaction &validated_tx, const txin_to_key& tx_in_to_key, visitor_t& vis)
{
scan_for_keys_context cntx_stub = AUTO_VAL_INIT(cntx_stub);
uint64_t stub = 0;
return scan_outputkeys_for_indexes(validated_tx, tx_in_to_key, vis, stub);
return scan_outputkeys_for_indexes(validated_tx, tx_in_to_key, vis, stub, cntx_stub);
}
template<class visitor_t>
bool scan_outputkeys_for_indexes(const transaction &validated_tx, const txin_v& verified_input, visitor_t& vis, uint64_t& max_related_block_height, scan_for_keys_context& /*scan_context*/) const;