diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index daf36a83..44a64a75 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -916,6 +916,26 @@ inline uint64_t get_sources_total_amount(const std::vector(in); + for (auto& ko : in2key.key_offsets) + { + if (ko.type() == typeid(currency::ref_by_id)) + ++refs_by_id; + else if (ko.type() == typeid(uint64_t)) + ++refs_by_gindex; + } + } +} + template void append_vector_by_another_vector(U& dst, const V& src) {