Settle balance following result of matching engine instead of TxMatchData
thanhnguyennguyen opened this issue · 1 comments
thanhnguyennguyen commented
Issue
Now, we use trades
of txMatchData to settle balance and update trades to mongodb.
After M1 processes orders, M1 may tamper txMatchData which send to other nodes.
Approach
All nodes use its matching result to apply balance and update trades
Similar to rejected orders
I'm going to close #766
thanhnguyennguyen commented
fixed in #780