more OrderBook performance optimizations

OrderBook: emit 'model' event only after last transaction in closed ledger
run AutobridgeCalculator only once in a ledger
This commit is contained in:
Ivan Tivonenko
2015-09-23 04:41:32 +03:00
parent f282585c3f
commit 3e17d91edf
5 changed files with 319 additions and 208 deletions

View File

@@ -671,6 +671,7 @@ describe('Remote', function() {
function() {
const message = require('./fixtures/transaction-offercreate');
let i = 0;
remote._ledger_current_index = 32570;
const orderbook = remote.createOrderBook({
currency_gets: 'USD',
issuer_gets: 'rJy64aCJLP3vf8o3WPKn4iQKtfpjh6voAR',