Commit Graph

71 Commits

Author SHA1 Message Date
David 5571cf85e5 Update backend/src/aggregator.rs
Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
2021-03-27 22:08:25 +01:00
David 3d6bdbcef6 Update backend/src/aggregator.rs
Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
2021-03-27 22:08:12 +01:00
David Palm 9b42bf4af0 Close websocket with a reason when muting 2021-03-26 23:06:52 +01:00
David Palm 8ed38deaa8 Merge remote-tracking branch 'origin/master' into dp-mute-node-connector-when-denied-or-overquota 2021-03-26 21:59:55 +01:00
David Palm d39f6b5617 Fix doc 2021-03-26 21:59:36 +01:00
Martin Pugh c1a14a01b6 fix backend for real this time 2021-03-26 20:20:49 +01:00
Martin Pugh 9e8ce96fec use alpine 2021-03-26 19:52:10 +01:00
Martin Pugh 9746a420d7 smdh... 2021-03-26 17:51:59 +01:00
Martin Pugh 30492d2874 point to latest 2021-03-26 17:33:16 +01:00
Martin Pugh 600ed304e3 Revert "Why can't you just be normal?"
This reverts commit af28d23e6a.
2021-03-26 17:20:43 +01:00
David Palm df6bd74de5 Merge remote-tracking branch 'origin/master' into dp-mute-node-connector-when-denied-or-overquota 2021-03-26 13:46:22 +01:00
David Palm f449dc6667 Add a Mute message
Send a `Mute` message to `NodeConnector` when a node is from a chain on the denylist OR if the chain is overquota.
(Also: dial down logging of finalized blocks a bit)
2021-03-26 13:24:54 +01:00
David Palm 894f7ef742 merge 2021-03-26 12:30:12 +01:00
David Palm b1f8978665 Merge remote-tracking branch 'origin/master' into dp-dockerfile 2021-03-26 12:28:41 +01:00
David Palm 2edb9195f6 Dockerfile fixes 2021-03-26 12:28:07 +01:00
e.g. magical unicorn af28d23e6a Why can't you just be normal?
remove musl image and replace with the maintained CI Rust image for now.
2021-03-26 12:02:45 +01:00
Maciej Hirsz 3f9fa3b7a0 Kill all nodes from "Earth" for now 2021-03-26 10:30:10 +01:00
David Palm f940322523 Merge branch 'master' into dp-add-denylist-for-unwanted-networks 2021-03-26 07:43:38 +01:00
David Palm 3978085a38 Upgrade actix to v4.0.0-beta.4 (and associated fall-out) 2021-03-25 17:13:25 +01:00
David Palm c53f3d8985 Merge branch 'master' into dp-add-denylist-for-unwanted-networks 2021-03-25 14:35:13 +01:00
David Palm 1d2183df24 Appease Clippy 2021-03-25 12:07:54 +01:00
David Palm 8f5f2102f9 Add a --log switch 2021-03-25 11:52:59 +01:00
David Palm a6713ea37e Set max_nodes in ChainEntry
Only add a new node if the current number of connected nodes is below the max
Define "first party networks" to be: Polkadot, Kusama, Westend and Rococo. All other networks are capped to 500 nodes
2021-03-25 11:05:34 +01:00
David Palm ec7ae91290 Add --denylist ChainIDontWant OtherChainIDontWant
Add --log error|warn|info|debug|trace
2021-03-24 20:26:01 +01:00
Cecile Tonglet 88bf301735 Wrap message's content into node's message (#306) 2021-01-20 12:32:20 +01:00
Maciej Hirsz 81cd70cf7d Parachain multiplexing (#295)
* Handle continuation frames

* Parachain multiplexing MVP

* Better multiplexing

* Rename NodeMultiplex -> ConnMultiplex

* Cleaner `handle_message`
2020-12-16 21:24:02 +01:00
Maciej Hirsz 262dbd6f14 Use startup_time from system.connected (#300)
* Handle startup time

* Remove dead code

* Bump protocol version + FE changes
2020-11-30 12:05:49 +01:00
Maciej Hirsz 98cd3cfa12 Fix a panic in actix-web normalize middleware (#294)
* Fix a panic in actix-web normalize middleware

* Cleanup dependencies
2020-10-29 19:46:11 +01:00
Maciej Hirsz 0ff63abf35 Bump dependencies (#293) 2020-10-26 19:57:51 +01:00
Maciej Hirsz a4c34d4a6c Simplify routes 2020-10-01 15:47:16 +02:00
Maciej Hirsz 73d0bfbc0a Fix typo 2020-09-30 15:27:09 +02:00
Maciej Hirsz b55dfa022a Clean unnecessary changes and comments 2020-09-29 19:20:53 +02:00
Maciej Hirsz 9e4a0d938e Clean up Cargo.toml 2020-09-29 19:17:16 +02:00
Maciej Hirsz 8bf1020c16 Finally working 2020-09-29 19:16:28 +02:00
Maciej Hirsz 4a5bafcd41 WIP 2020-09-25 14:03:35 +02:00
Roman Borschel a65250118e Update backend/src/node.rs 2020-09-14 17:05:36 +02:00
Roman Borschel 5ecd6e2c46 Update backend/src/node.rs
Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
2020-09-14 17:04:38 +02:00
Roman S. Borschel d8ae36dc34 Further decouple SystemInterval values. 2020-09-14 11:19:43 +02:00
Maciej Hirsz 530132a3bb Fix iplocate cerificates (#283) 2020-08-26 14:17:53 +02:00
Maciej Hirsz 0f13c76fe1 Log locate errors (#282) 2020-08-26 09:34:35 +02:00
Maciej Hirsz 390a5a36f4 Log remote IP (#281) 2020-08-25 18:10:32 +02:00
Maciej Hirsz a721cc4e42 Cut metrics (#280) 2020-08-21 17:01:39 +02:00
Maciej Hirsz 525f95b92a Hide unknown messages in production (#275) 2020-08-04 13:04:46 +02:00
Maciej Hirsz 793c759728 Update Rust dependencies 2020-07-29 12:09:27 +02:00
Maciej Hirsz 4b29a2afa2 Pin merged Polkadot chain (#272) 2020-07-21 17:39:38 +02:00
Chevdor 615feb2af0 Better docker image for the backend (#245)
* Ignore vscode settings

* Add Dockerfile for the backend

* Shrink the docker image for the backend a little more

- fix some doc
- switch the rust static builder base image to nightly
- switch 2 stage base image
- remove version label

* Switch second stage base image to scratch

* Switch to the in-house base image

* Update README.md

Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
2020-05-27 09:08:40 +02:00
Chevdor 8ed8d01426 Documentation (#259)
* Documentation

- bump up frontend version (to trigger the CI)
- bump up the backend version (to trigger the CI)
- add some docker related doc
- add CI badges

* Fix CI step name

* Add screenshot
2020-04-24 12:49:52 +02:00
Chevdor 2c8e8ed7d3 Add clap support (#247)
* Add clap support

* Version bump

* Switch to using a single SokectAddr
2020-04-06 16:54:07 +02:00
Chevdor b9853be186 Listen by default to the local interface and allows changing it (#246) 2020-03-31 15:53:16 +02:00
Maciej Hirsz 85b7809533 Force Kusama CC3 nodes into Kusama chain (#235) 2020-03-19 17:10:43 +01:00