Fixed spreader order state update. From the middle of the Atlantic.

Go BTS.
This commit is contained in:
Pedro Pinto committed 2018-08-03 23:13:30 +00:00
1 parent 1b5f58c572
commit f3f53d05c8
1 file changed
+6
@@ -588,6 +588,12 @@ void NativeOrder::on_exe_report(const NewExecutionReportEvent &er) {
auto &state = me->state;
auto &native_state = get_native_state(state);
if (er.data->leg_security) {
LOG(OrderMan, Diag,
"Ignoring leg execution report for order {}", key().value());
return;
}
if (native_state.last_msg_seq_num() > er.data->msg_seq_num) {
LOG(OrderMan, Warn,
"Ignoring already seen execution report {} in order {}",