diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 190daf4c..8c7a09de 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -645,7 +645,7 @@ bool blockchain_storage::purge_transaction_keyimages_from_blockchain(const trans } }; - BOOST_FOREACH(const txin_v& in, tx.vin) + for(const txin_v& in : tx.vin) { bool r = boost::apply_visitor(purge_transaction_visitor(*this, m_db_spent_keys, strict_check), in); CHECK_AND_ASSERT_MES(!strict_check || r, false, "failed to process purge_transaction_visitor");