mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Simplify and improve order book tracking:
- Avoid using std::shared_ptr - Prefer using unordered maps to avoid linear searches - Increase the interval between full order book updates
This commit is contained in:
@@ -3072,7 +3072,8 @@ NetworkOPsImp::pubValidatedTransaction(
|
||||
it = mStreamMaps[sRTTransactions].erase(it);
|
||||
}
|
||||
}
|
||||
app_.getOrderBookDB().processTxn(alAccepted, alTx, jvObj);
|
||||
if (alTx.getResult() == tesSUCCESS)
|
||||
app_.getOrderBookDB().processTxn(alAccepted, alTx, jvObj);
|
||||
pubAccountTransaction(alAccepted, alTx, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user