Commit graph

163 commits

Author SHA1 Message Date
Blockstream Satellite
a6e5102641 TF: change lightningd prom metrics iptables port 2021-07-20 12:28:49 -03:00
Blockstream Satellite
4cf05d45f0 TF: make api-server PROACTIVE 2021-07-20 12:28:49 -03:00
nitramiz
79eb73f223 CI: manual image builds on all branches 2021-07-20 12:28:49 -03:00
nitramiz
5860c65540 CI: GCR docker auth; rename ionosphere to api-server
TF: add CI service account; add REDIS_URI to services
2021-07-20 12:28:49 -03:00
Blockstream Satellite
7f6d4b3a6b CI: Review CI to allow deployment from any branch
- If a staging_/prod_/misc_ tag is present, or if merging to master,
  push the Satellite API image upstream.

- Tag images with the commit SHA and the commit ref slug (.e.g, branch
  name) for caching. Tag with latest if merging to master.

- Deploy the image specified by commit SHA.
2021-07-20 12:28:49 -03:00
Blockstream Satellite
fd36995b66 CI: Push Docker images to gcloud registry 2021-07-20 12:28:42 -03:00
Blockstream Satellite
afbd02f759 TF: prepare staging 2021-07-20 12:28:28 -03:00
Blockstream Satellite
be67323a24 CI/TF: Updates for python-ported version 2021-07-20 12:28:28 -03:00
Blockstream Satellite
3d7a5b764d Add expired invoice error and rename paid error
- Add new error: INVOICE_ALREADY_EXPIRED.
- Rename ORDER_ALREADY_PAID to INVOICE_ALREADY_PAID.
2021-07-20 12:28:08 -03:00
Blockstream Satellite
90f7c12783 Remove unused/obsolete API error codes
The new server implementation in Python implements request validation
using the Marshamallow package. With that, some requests are validated
directly by the marshmallow validator and do not return custom error
codes. Drop those error codes and other unused ones. Review the README
docs accordingly.
2021-07-20 12:28:08 -03:00
Blockstream Satellite
24a4c5ccb7 Do not round the order's bid_per_byte value
Store the fractional value on the db. Let the frontend round if
necessary but keep it non-rounded on the backend.
2021-07-20 12:28:08 -03:00
Blockstream Satellite
1568ee54f2 Add a new error code for fetching info
Return a json response with a custom error code like most other API
endpoints.
2021-07-20 12:28:08 -03:00
Blockstream Satellite
d8e7516f01 Add date filter and paging on all orders/ states
- Add date filtering (before parameter) to /queued.
- Add page limit to /sent and /pending.
2021-07-20 12:28:08 -03:00
Blockstream Satellite
9d421771e7 Port the satellite API to python
- Preserve the SQLite database and use SQLAlchemy to wrap db
  interactions.
- Use Alembic for database migrations.
- Organize all the python modules on the new server/ directory.
- Use pytest for unit tests and organize test modules at server/tests/.
2021-07-20 12:28:08 -03:00
Blockstream Satellite
8a332afcb0 TF: cleanup unused postgres service 2021-07-20 12:28:08 -03:00
Blockstream Satellite
825d04b651 CI: remove testnet_staging jobs 2021-07-20 12:28:08 -03:00
nitramiz
0dbeb9feab CI: terraform 0.14.5 2021-03-29 08:34:55 -07:00
nitramiz
417b52ad5e
update lightningd to 0.9.3
remove LB autoscaler
2021-03-29 08:10:23 -07:00
nitramiz
905e7e6a87
CI: update misc jobs 2021-02-23 07:33:03 -08:00
nitramiz
a4281072b6 update DNS; output LB's internal IP 2021-02-23 07:23:07 -08:00
nitramiz
c4be27d1cb tf: update auth endpoint 2021-02-22 10:42:49 -08:00
nitramiz
77e920be6f
increase max file size for btc-src orders 2021-01-28 10:16:34 -08:00
Igor Freire
35b61e0685 Handle auth/ and btc-src/ via LB 2021-01-28 07:03:12 -08:00
Igor Freire
2ae72ccc59 Add lower limit of one satoshi on bids
Many Lightning wallets do not support payments below 1 sat (in
millisatoshis). For wider compliance, set a lower limit of 1 sat on orders,
while preserving the minimum bid per byte requirement for orders whose absolute
bid exceeds 1 sat.
2021-01-22 17:16:45 -03:00
Igor Freire
d27e5152f1 Update default minimum bid per byte 2021-01-22 17:16:44 -03:00
nitramiz
8140500367 CI: update docker and alpine + remove cache_from + add network=host to build_ci_image job (and test_build job) 2021-01-19 14:30:29 -08:00
nitramiz
414341b3fa
tf: update the LB's cert-renewer.service to reload nginx 2020-12-31 07:35:39 -08:00
nitramiz
9c04dd66d0
lower min per byte bid to 1msat/byte 2020-12-07 12:45:48 -08:00
nitramiz
0cc8cb10f7
CI: update job tags 2020-12-07 09:46:08 -08:00
nitramiz
b6ea319c0a
LB gossip order fix 2020-11-04 05:27:29 -08:00
Chase Sillevis
0ab56847c2
more LB patches: /gossip/order protection fix, 2MB upload limit 2020-11-03 10:31:28 +01:00
Chase Sillevis
c9cd6a31ea
nginx lb: also protect /gossip/order 2020-11-02 19:10:18 +01:00
nitramiz
bb0845af89
LB nits 2020-10-29 08:50:58 -07:00
nitramiz
cfe2cf3136
handle /gossip via LB 2020-10-29 08:34:07 -07:00
nitramiz
17aa8c0319 tf: fix interpolation syntax 2020-10-28 08:51:17 -07:00
nitramiz
81885d4142
CI: add init after workspace select 2020-09-25 15:12:36 -07:00
nitramiz
18780816e5
tf: 0.13 + clightning 0.9.1 2020-09-25 13:51:32 -07:00
Igor Freire
aabdc11e24 Fix criteria for transitioning into received state
Since there can be multiple Tx confirmations for the same region, we should not
check if the number of Tx confirmations matches with the number of
regions. Instead, we should check if all regions have at least one Tx
confirmation.
2020-06-15 14:34:29 -03:00
nitramiz
c4bf6f1a90
update dependencies 2020-06-09 06:18:15 -07:00
nitramiz
0664ddf937 add CI image builder job and .dockerignore 2020-06-09 05:18:47 -07:00
Igor Freire
21228cd437 Update message size computation to UDP/IPv4/MPE
In Blocksat 2.0, user data sent over the API is encapsulated over UDP -> IPv4 ->
MPE, while respecting a layer 2 MTU of 1500 bytes. This changes the number of
bytes occupied over the satellite link for each transmission.
2020-06-08 13:26:09 -03:00
Igor Freire
41de963529 Add Telstar 18V Ku region and update receivers
- Add new region to represent the Telstar 18V Ku band coverage.
- Assume that there are receivers sending Rx confirmations from regions 0, 1, 4,
  and 5 now. Thus, synthesize the presumed Rx state only for regions 2 and 3.
2020-06-05 06:17:12 -07:00
Igor Freire
0801ca8ba6 Fix max line blocking definition
- Default transmit rate should be 1000 bytes per second.
- Max message size should be 1 MB (i.e., 1048576 bytes)
- Max line blocking duration of 1050 seconds leads to a max message size of
  1050000 bytes, namely slightly higher than 1MB.
2020-06-03 14:43:34 -03:00
nitramiz
e66b400978
raise max message size to 1MB; update c-lightning to 0.8.2 2020-05-03 07:26:11 -07:00
nitramiz
b840ff21c5 CI: test building image in test_build job; use bundler 2.0 2020-03-10 08:27:39 -07:00
nitramiz
6565adae34
add bundle update to Dockerfile
Signed-off-by: nitramiz <martin@blockstream.com>
2020-03-10 07:57:21 -07:00
nitramiz
fdd41caee2 CI updates 2020-03-10 07:29:55 -07:00
nitramiz
33a90dd5c0
CI: always update bundler 2020-03-10 07:23:15 -07:00
nitramiz
e301ada9f4
update builder image 2020-03-10 07:14:03 -07:00
nitramiz
331eda5573
update ruby dependencies + lightningd 2020-03-09 11:08:00 -07:00