From 6df3dce95dbe7fbcbccaf250c83a030ba2fd0050 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Mon, 7 Dec 2020 19:51:00 -0500 Subject: [PATCH] Commented out the IB annotation until we get it sorted out. --- .../md/mdp3/back_testing/simulator/Sim.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/simulator/Sim.cpp b/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/simulator/Sim.cpp index 430237bbe..bfcb4b15d 100644 --- a/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/simulator/Sim.cpp +++ b/src/server/sparkd/cmds/spartan/md/mdp3/back_testing/simulator/Sim.cpp @@ -423,7 +423,7 @@ void Sim::clear_simulated_order_book(MDP3TimeStamp transact_time, match_and_send_effects(transact_time, matcher_input); } -SmallOrderChange Sim::correct_pcap_order(OrderChange const &o, bool set_exact_ib_state) { +SmallOrderChange Sim::correct_pcap_order(OrderChange const &o, bool ) { bts_assert(me->state == State::SIM); bts_assert(me->simulation); auto &key_map = me->simulation->cme_key_map; @@ -452,13 +452,13 @@ SmallOrderChange Sim::correct_pcap_order(OrderChange const &o, bool set_exact_ib result.order.key = our_key; } } - if (o.change != OrderChange::ChangeType::removed) { - // IcebergMap is keyed by exchange keys - auto ib_it = me->ib_map.find(result.original_key); - if (ib_it != me->ib_map.end()) - iceberg_helper::add_iceberg_annotation( - result.order, result.change, ib_it->second, me->event_id.first, set_exact_ib_state); - } + // if (o.change != OrderChange::ChangeType::removed) { + // // IcebergMap is keyed by exchange keys + // auto ib_it = me->ib_map.find(result.original_key); + // if (ib_it != me->ib_map.end()) + // iceberg_helper::add_iceberg_annotation( + // result.order, result.change, ib_it->second, me->event_id.first, set_exact_ib_state); + // } return result; }