• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gnosis / dex-services / 5600
31%

Build:
DEFAULT BRANCH: master
Ran 02 Dec 2020 10:37AM UTC
Jobs 1
Files 112
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Dec 2020 10:06AM UTC coverage: 28.362% (-0.02%) from 28.386%
5600

push

travis-pro

web-flow
Add support for filtered orderbook in the price estimator (#1567)

One half of #1566 

This PR adds a "filter" command line argument to allow filtering tokens and accounts 

### Test Plan

Run the price estimator with a token filter:
```
$ cargo run -p price-estimator -- --orderbook-file target/stablex_orderbook_mainnet.bin --orderbook-filter '{"tokens": {"Blacklist": [158]}}'
```

Now check that you can successfully retrieve the orderbook
```
$ curl -s "http://localhost:8080/api/v1/markets/157-4?batchId=5355804" | jq '{ asks: (.asks | length), bids: (.bids | length) }'
{
  "asks": 10,
  "bids": 565
}
```

Previously, in debug mode, the server would error with:
```
ERRO [services_core::logging] thread ‘tokio-runtime-worker’ panicked at ‘assertion failed: num::is_strictly_positive_and_finite(value)’, pricegraph/src/orderbook/scalar.rs:172:5
```

In release mode, it would enter an **infinite loop**.

13799 of 56098 branches covered (24.6%)

Branch coverage included in aggregate %.

3804 of 5967 relevant lines covered (63.75%)

39673.21 hits per line

Jobs
ID Job ID Ran Files Coverage
3 5600.3 (OPEN_SOLVER_VERSION=v0.1.2 PRIVATE_SOLVER_VERSION=v0.8.7) 02 Dec 2020 10:37AM UTC 0
28.36
Travis Job 5600.3
Source Files on build 5600
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5600
  • 9c9da036 on github
  • Prev Build on master (#5597)
  • Next Build on master (#5602)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc